_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
<DispIdAttribute()> _
ReadOnly Property MarkAsTask As MarkAsTaskRuleAction
    Get
'Usage
Dim instance As _RuleActions
Dim value As MarkAsTaskRuleAction

value = instance.MarkAsTask
[DispIdAttribute()]
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

Other Resources

How to: Create a Rule to File Mail Items from a Manager and Flag Them for Follow-Up