Share via


_RuleActions.MarkAsTask Property

Returns a MarkAsTaskRuleAction object with _MarkAsTaskRuleAction.ActionType being olRuleActionMarkAsTask. Read-only.

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

Syntax

'Declaration
ReadOnly Property MarkAsTask As MarkAsTaskRuleAction
    Get
'Usage
Dim instance As _RuleActions
Dim value As MarkAsTaskRuleAction

value = instance.MarkAsTask
MarkAsTaskRuleAction MarkAsTask { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.MarkAsTaskRuleAction

Remarks

Use the returned MarkAsTaskRuleAction object when enumerating the rule actions of an existing rule or when creating a new rule that specifies the action of marking a message as a task.

This property of the RuleActions collection always returns a MarkAsTaskRuleAction 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 _MarkAsTaskRuleAction.Enabled will be True.

See Also

Reference

_RuleActions Interface

_RuleActions Members

Microsoft.Office.Interop.Outlook Namespace