Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailStoreCategoryList

OfficeIMO.Email.Store

Namespace
OfficeIMO.Email.Store
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 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() #

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

public 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 required
maxXmlBytes int = 4194304 optional
public bool Remove(string name) #

Removes one category case-insensitively.

Parameters

name string required

Returns

bool
public 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 required
color int = -1 optional
keyboardShortcut uint = 0 optional
id System.Guid? = null optional
usageCount uint? = null optional
lastUsed System.DateTimeOffset? = null optional
renameOnFirstUse bool = false optional
public EmailDocument ToAssociatedDocument(DateTimeOffset? savedAt = null) #

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

Parameters

savedAt System.DateTimeOffset? = null optional
public byte[] ToXml(DateTimeOffset? savedAt = null) #

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

Parameters

savedAt System.DateTimeOffset? = null optional

Returns

byte[]

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.