_RuleAction.Enabled Property

Returns or sets a Boolean (bool in C#) that determines if the RuleAction is enabled. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As _RuleAction
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
[DispIdAttribute()]
bool Enabled { get; set; }

Property Value

Type: System.Boolean

Remarks

After you enable a rule action, you must also save the rule by using _Rules.Save so that the rule action and its enabled state will persist beyond the current session. A rule action is only enabled after it has been saved successfully.

Returns an error if you attempt to enable a rule action that is supported only on a rule of type olRuleSend for a rule of type olRuleReceive, or vice versa.

See Also

Reference

_RuleAction Interface

_RuleAction Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Execute a Rule on a Local Computer