# EmailStoreFolderCatalog

Indexed, cycle-safe navigation over the lightweight folder catalog of one open store.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreFolderCatalog.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L49)

**Modifiers**

sealed

Indexed, cycle-safe navigation over the lightweight folder catalog of one open store.

## Inheritance

- object
- EmailStoreFolderCatalog

## Usage

Explore 1 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 1

- Property [EmailStoreSession.FolderCatalog](/api/email/officeimo-email-store-emailstoresession/#property-foldercatalog)

Filter members 

Show inherited

## Methods

`public EmailStoreFolderInfo? FindSpecialFolder(EmailStoreSpecialFolderKind kind)` [#](#method-findspecialfolder-officeimo-email-store-emailstorespecialfolderkind)

[EmailStoreFolderCatalog.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L124)

Returns the single matching well-known folder, or null; throws if the role is ambiguous.

Parameters

**kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind required**

Returns

`EmailStoreFolderInfo?`

`public IReadOnlyList<EmailStoreFolderInfo> FindSpecialFolders(EmailStoreSpecialFolderKind kind)` [#](#method-findspecialfolders-officeimo-email-store-emailstorespecialfolderkind)

[EmailStoreFolderCatalog.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L120)

Gets every folder classified with the requested well-known role.

Parameters

**kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind required**

Returns

`IReadOnlyList<EmailStoreFolderInfo>`

`public EmailStoreFolderInfo Get(EmailStoreFolderId id)` [#](#method-get-officeimo-email-store-emailstorefolderid)

[EmailStoreFolderCatalog.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L49)

Gets one folder or throws when the identifier is not in this store.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

Returns

`EmailStoreFolderInfo`

`public IReadOnlyList<EmailStoreFolderInfo> GetChildren(EmailStoreFolderId id)` [#](#method-getchildren-officeimo-email-store-emailstorefolderid)

[EmailStoreFolderCatalog.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L68)

Gets immediate children in source order.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

Returns

`IReadOnlyList<EmailStoreFolderInfo>`

`public IReadOnlyList<EmailStoreFolderInfo> GetDescendants(EmailStoreFolderId id, int maxFolders = 100000)` [#](#method-getdescendants-officeimo-email-store-emailstorefolderid-int32)

[EmailStoreFolderCatalog.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L76)

Enumerates descendants breadth-first, bounded and protected from source cycles.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

**maxFolders int = 100000 optional**

Returns

`IReadOnlyList<EmailStoreFolderInfo>`

`public EmailStoreFolderInfo? GetParent(EmailStoreFolderId id)` [#](#method-getparent-officeimo-email-store-emailstorefolderid)

[EmailStoreFolderCatalog.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L60)

Gets the resolvable parent, or null for a root or dangling source parent.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

Returns

`EmailStoreFolderInfo?`

`public IReadOnlyList<EmailStoreFolderInfo> GetPath(EmailStoreFolderId id, int maxDepth = 1024)` [#](#method-getpath-officeimo-email-store-emailstorefolderid-int32)

[EmailStoreFolderCatalog.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L98)

Gets the root-to-folder path, stopping safely if corrupt parent links form a cycle.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

**maxDepth int = 1024 optional**

Returns

`IReadOnlyList<EmailStoreFolderInfo>`

`public bool TryGet(EmailStoreFolderId id, out EmailStoreFolderInfo? folder)` [#](#method-tryget-officeimo-email-store-emailstorefolderid-officeimo-email-store-emailstorefolderinfo)

[EmailStoreFolderCatalog.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L56)

Attempts to get one folder.

Parameters

**id OfficeIMO.Email.Store.EmailStoreFolderId required**

**folder OfficeIMO.Email.Store.EmailStoreFolderInfo? required**

Returns

`bool`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<EmailStoreFolderInfo> All { get; }` [#](#property-all)

[EmailStoreFolderCatalog.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L42)

Every folder in source order.

`public IReadOnlyList<EmailStoreFolderInfo> Roots { get; }` [#](#property-roots)

[EmailStoreFolderCatalog.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreFolderCatalog.cs#L45)

Folders without a resolvable parent.

<!-- PowerForge markdown artifact sha256:899340FC1AECDF0E7C421A8CF3B956614BC4A6D2D49035DD78FE0DF49085BB52 -->
