EmailStoreFolderCatalog
OfficeIMO.Email.Store
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
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
Returns
EmailStoreFolderInfo?public IReadOnlyList<EmailStoreFolderInfo> FindSpecialFolders(EmailStoreSpecialFolderKind kind) #Gets every folder classified with the requested well-known role.
Parameters
- kind OfficeIMO.Email.Store.EmailStoreSpecialFolderKind
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
Returns
EmailStoreFolderInfopublic IReadOnlyList<EmailStoreFolderInfo> GetChildren(EmailStoreFolderId id) #Gets immediate children in source order.
Parameters
- id OfficeIMO.Email.Store.EmailStoreFolderId
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
- maxFolders int = 100000
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
Returns
EmailStoreFolderInfo?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
- maxDepth int = 1024
Returns
IReadOnlyList<EmailStoreFolderInfo>public bool TryGet(EmailStoreFolderId id, out EmailStoreFolderInfo? folder) #Attempts to get one folder.
Parameters
- id OfficeIMO.Email.Store.EmailStoreFolderId
- folder OfficeIMO.Email.Store.EmailStoreFolderInfo?
Returns
bool