API Reference

Class

EmailStoreFolderCatalog

Namespace OfficeIMO.Email.Store
Assembly OfficeIMO.Email
Modifiers sealed

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

Inheritance

  • Object
  • EmailStoreFolderCatalog

Usage

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

Returned or exposed by

Methods

public EmailStoreFolderInfo FindSpecialFolder(EmailStoreSpecialFolderKind kind) #
Returns: EmailStoreFolderInfo

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

Parameters

kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind requiredposition: 0
public IReadOnlyList<EmailStoreFolderInfo> FindSpecialFolders(EmailStoreSpecialFolderKind kind) #
Returns: IReadOnlyList<EmailStoreFolderInfo>

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

Parameters

kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind requiredposition: 0
public EmailStoreFolderInfo Get(EmailStoreFolderId id) #
Returns: EmailStoreFolderInfo

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
public IReadOnlyList<EmailStoreFolderInfo> GetChildren(EmailStoreFolderId id) #
Returns: IReadOnlyList<EmailStoreFolderInfo>

Gets immediate children in source order.

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
public IReadOnlyList<EmailStoreFolderInfo> GetDescendants(EmailStoreFolderId id, Int32 maxFolders = 100000) #
Returns: IReadOnlyList<EmailStoreFolderInfo>

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
maxFolders System.Int32 = 100000 optionalposition: 1
public EmailStoreFolderInfo GetParent(EmailStoreFolderId id) #
Returns: EmailStoreFolderInfo

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
public IReadOnlyList<EmailStoreFolderInfo> GetPath(EmailStoreFolderId id, Int32 maxDepth = 1024) #
Returns: IReadOnlyList<EmailStoreFolderInfo>

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
maxDepth System.Int32 = 1024 optionalposition: 1
public Boolean TryGet(EmailStoreFolderId id, out EmailStoreFolderInfo folder) #
Returns: Boolean

Attempts to get one folder.

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId requiredposition: 0
folder OfficeIMO.Email.Store.EmailStoreFolderInfo@ requiredposition: 1

Properties

public IReadOnlyList<EmailStoreFolderInfo> All { get; } #

Every folder in source order.

public IReadOnlyList<EmailStoreFolderInfo> Roots { get; } #

Folders without a resolvable parent.