Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

EmailStoreCategoryList

Namespace OfficeIMO.Email.Store
Assembly OfficeIMO.Email
Source revision 33d062b583cb with working tree changes
Modifiers sealed

Lossless Outlook master category list. Known category elements can be edited while unknown XML is preserved.

Inheritance

  • Object
  • EmailStoreCategoryList

Usage

Explore 3 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.

Methods

public static EmailStoreCategoryList Create() #
Returns: EmailStoreCategoryList

Creates an empty category list; add at least one category before serialization.

public static EmailStoreCategoryList Parse(EmailDocument document, Int32 maxXmlBytes = 4194304) #
Returns: EmailStoreCategoryList

Parses a category-list associated message using a strict XML byte bound.

Parameters

document OfficeIMO.Email.EmailDocument requiredposition: 0
maxXmlBytes System.Int32 = 4194304 optionalposition: 1
public Boolean Remove(String name) #
Returns: Boolean

Removes one category case-insensitively.

Parameters

name System.String requiredposition: 0
public EmailStoreCategoryDefinition Set(String name, Int32 color = -1, UInt32 keyboardShortcut = 0, Guid? id = null, UInt32? usageCount = null, DateTimeOffset? lastUsed = null, Boolean renameOnFirstUse = false) #
Returns: EmailStoreCategoryDefinition

Adds or replaces one category while retaining unknown attributes on an existing element.

Parameters

name System.String requiredposition: 0
color System.Int32 = -1 optionalposition: 1
keyboardShortcut System.UInt32 = 0 optionalposition: 2
id System.Guid? = null optionalposition: 3
usageCount System.UInt32? = null optionalposition: 4
lastUsed System.DateTimeOffset? = null optionalposition: 5
renameOnFirstUse System.Boolean = false optionalposition: 6
public EmailDocument ToAssociatedDocument(DateTimeOffset? savedAt = null) #
Returns: EmailDocument

Creates an Outlook-compatible FAI document for an associated Calendar-folder write.

Parameters

savedAt System.DateTimeOffset? = null optionalposition: 0
public Byte[] ToXml(DateTimeOffset? savedAt = null) #
Returns: Byte[]

Serializes the category XML, updating its last-saved time on the serialized snapshot.

Parameters

savedAt System.DateTimeOffset? = null optionalposition: 0

Properties

public IReadOnlyList<EmailStoreCategoryDefinition> Categories { get; } #

Every parsed category in XML order.

public String DefaultCategoryName { get; set; } #

One-click default category name, or an empty string.

public DateTimeOffset? LastSavedAt { get; } #

Last saved UTC time declared by the XML.

public Boolean IsProtocolEnvelopeValid { get; } #

True when the known protocol envelope and required category fields are valid.