Share via


_CategoryRuleCondition.Categories Property

Returns or sets an array of String (string in C#) elements that represents the categories evaluated by the rule condition. Read-write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Property Categories As Object
    Get
    Set
'Usage
Dim instance As _CategoryRuleCondition
Dim value As Object

value = instance.Categories

instance.Categories = value
Object Categories { get; set; }

Property Value

Type: System.Object

Remarks

You can assign an array with one element to evaluate a single category or an array of multiple strings to evaluate multiple categories. Multiple category strings assigned in an array are evaluated using the logical OR operation.

If a string specified by Categories matches a category of the message, the condition evaluates to True.

Outlook does not check to determine if the Categories property contains category names that are in the master category list.

Returns an error if Categories contains one or more empty strings.

See Also

Reference

_CategoryRuleCondition Interface

_CategoryRuleCondition Members

Microsoft.Office.Interop.Outlook Namespace