EmailStoreCategoryList
OfficeIMO.Email.Store
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.
Returned or exposed by 3
Methods
public static EmailStoreCategoryList Create() #Creates an empty category list; add at least one category before serialization.
Returns
EmailStoreCategoryListpublic static EmailStoreCategoryList Parse(EmailDocument document, int maxXmlBytes = 4194304) #Parses a category-list associated message using a strict XML byte bound.
Parameters
- document OfficeIMO.Email.EmailDocument
- maxXmlBytes int = 4194304
Returns
EmailStoreCategoryListpublic bool Remove(string name) #Removes one category case-insensitively.
Parameters
- name string
Returns
boolpublic EmailStoreCategoryDefinition Set(string name, int color = -1, uint keyboardShortcut = 0, Guid? id = null, uint? usageCount = null, DateTimeOffset? lastUsed = null, bool renameOnFirstUse = false) #Adds or replaces one category while retaining unknown attributes on an existing element.
Parameters
- name string
- color int = -1
- keyboardShortcut uint = 0
- id System.Guid? = null
- usageCount uint? = null
- lastUsed System.DateTimeOffset? = null
- renameOnFirstUse bool = false
Returns
EmailStoreCategoryDefinitionpublic EmailDocument ToAssociatedDocument(DateTimeOffset? savedAt = null) #Creates an Outlook-compatible FAI document for an associated Calendar-folder write.
Parameters
- savedAt System.DateTimeOffset? = null
Returns
EmailDocumentpublic byte[] ToXml(DateTimeOffset? savedAt = null) #Serializes the category XML, updating its last-saved time on the serialized snapshot.
Parameters
- savedAt System.DateTimeOffset? = null
Returns
byte[]Inherited Methods
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 bool IsProtocolEnvelopeValid { get; } #True when the known protocol envelope and required category fields are valid.