_PlaySoundRuleAction.Enabled property

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

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

bool Enabled { get; set; }

Property value

Type: System.Boolean

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