_RuleActions.AssignToCategory Property
Returns an AssignToCategoryRuleAction object with _AssignToCategoryRuleAction.ActionType being olRuleAssignToCategory. Read-only.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
ReadOnly Property AssignToCategory As AssignToCategoryRuleAction
Get
'Usage
Dim instance As _RuleActions
Dim value As AssignToCategoryRuleAction
value = instance.AssignToCategory
[DispIdAttribute()]
AssignToCategoryRuleAction AssignToCategory { get; }
Property Value
Type: Microsoft.Office.Interop.Outlook.AssignToCategoryRuleAction
Remarks
Use the returned AssignToCategoryRuleAction object when enumerating the rule actions of an existing rule or when creating a new rule that assigns categories to a message.
This property of the RuleActions collection always returns an AssignToCategoryRuleAction object regardless of whether the rule associated with this RuleActions collection has defined such a rule action. If the rule has defined and enabled such a rule action, then _AssignToCategoryRuleAction.Enabled will be True.
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace
Other Resources
How to: Create a Rule to Assign Categories to Mail Items Based on Multiple Words in the Subject