# OneNoteFileKind

Identifies the logical OneNote artifact represented by a file.

Enum 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[OneNoteFormat.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.OneNote/OneNoteFormat.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Identifies the logical OneNote artifact represented by a file.

## Inheritance

- Enum
- OneNoteFileKind

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 5

- Property [OneNoteFileHeader.FileKind](/api/onenote/officeimo-onenote-onenotefileheader/#property-filekind)
- Field [OneNoteFileKind.NotebookPackage](/api/onenote/officeimo-onenote-onenotefilekind/#field-notebookpackage)
- Field [OneNoteFileKind.Section](/api/onenote/officeimo-onenote-onenotefilekind/#field-section)
- Field [OneNoteFileKind.TableOfContents](/api/onenote/officeimo-onenote-onenotefilekind/#field-tableofcontents)
- Field [OneNoteFileKind.Unknown](/api/onenote/officeimo-onenote-onenotefilekind/#field-unknown)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OneNoteFileKind Unknown` [#](#field-unknown)

[OneNoteFormat.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.OneNote/OneNoteFormat.cs#L8)

The artifact could not be classified.

Value: `0`

`public const OneNoteFileKind Section` [#](#field-section)

[OneNoteFormat.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.OneNote/OneNoteFormat.cs#L10)

A OneNote section stored in a .one file.

Value: `1`

`public const OneNoteFileKind TableOfContents` [#](#field-tableofcontents)

[OneNoteFormat.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.OneNote/OneNoteFormat.cs#L12)

A OneNote notebook table of contents stored in a .onetoc2 file.

Value: `2`

`public const OneNoteFileKind NotebookPackage` [#](#field-notebookpackage)

[OneNoteFormat.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.OneNote/OneNoteFormat.cs#L14)

A packaged OneNote notebook stored in a .onepkg file.

Value: `3`

<!-- PowerForge markdown artifact sha256:3C8B75F1657407DD9FC47664336D992FDCE9E5B2052A910CB91A1CADCC8E0353 -->
