RuleActions.AssignToCategory Property (Outlook)

Returns an AssignToCategoryRuleAction object with AssignToCategoryRuleAction.ActionType being olRuleAssignToCategory. Read-only.

Version Information

Version Added: Outlook 2007

Syntax

expression .AssignToCategory

expression A variable that represents a RuleActions object.

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

Concepts

RuleActions Object Members

RuleActions Object