Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailStoreFolderCatalog

OfficeIMO.Email.Store

Namespace
OfficeIMO.Email.Store
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 with working tree changes
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

Methods

public EmailStoreFolderInfo? FindSpecialFolder(EmailStoreSpecialFolderKind kind) #

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

Parameters

kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind required
public IReadOnlyList<EmailStoreFolderInfo> FindSpecialFolders(EmailStoreSpecialFolderKind kind) #

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) #

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId required
public IReadOnlyList<EmailStoreFolderInfo> GetChildren(EmailStoreFolderId id) #

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) #

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) #

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

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId required
public IReadOnlyList<EmailStoreFolderInfo> GetPath(EmailStoreFolderId id, int maxDepth = 1024) #

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) #

Attempts to get one folder.

Parameters

id OfficeIMO.Email.Store.EmailStoreFolderId required
folder OfficeIMO.Email.Store.EmailStoreFolderInfo? required

Returns

bool

Properties

public IReadOnlyList<EmailStoreFolderInfo> All { get; } #

Every folder in source order.

public IReadOnlyList<EmailStoreFolderInfo> Roots { get; } #

Folders without a resolvable parent.