API Reference
Class
OutlookCategoryCollection
Mutable Outlook category names with case-insensitive convenience operations.
Inheritance
- Object
- OutlookCategoryCollection
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property EmailMessageMetadata.Categories
Constructors
public OutlookCategoryCollection() #Methods
public Boolean AddIfMissing(String category) #Returns:
BooleanAdds a non-empty category unless an equivalent name already exists.
Parameters
- category System.String
Returns
true when the category was added.
Contains 2 overloads
public Boolean Contains(String category, StringComparer comparer) #Returns:
BooleanReturns whether the collection contains a category using the requested comparison.
Parameters
- category System.String
- comparer System.StringComparer
public virtual Void CopyTo(String[] array, Int32 arrayIndex) #Returns:
VoidParameters
- array System.String[]
- arrayIndex System.Int32
public virtual IEnumerator<String> GetEnumerator() #Returns:
IEnumerator<String>public virtual Void Insert(Int32 index, String item) #Returns:
VoidParameters
- index System.Int32
- item System.String
public Int32 RemoveAll(String category) #Returns:
Int32Removes every category matching the supplied name case-insensitively.
Parameters
- category System.String
Returns
The number of removed category entries.
public Void ReplaceWith(IEnumerable<String> categories, Boolean removeDuplicates = true) #Returns:
VoidReplaces the collection, optionally removing case-insensitive duplicates.
Parameters
- categories System.Collections.Generic.IEnumerable{System.String}
- removeDuplicates System.Boolean = true
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object