Rediger

Del via


_Rule.Actions Property

Definition

Returns a RuleActions collection object that represents all the available rule actions for the rule. Read-only.

public:
 property Microsoft::Office::Interop::Outlook::RuleActions ^ Actions { Microsoft::Office::Interop::Outlook::RuleActions ^ get(); };
public Microsoft.Office.Interop.Outlook.RuleActions Actions { get; }
Public ReadOnly Property Actions As RuleActions

Property Value

Remarks

You can enumerate and enable rules with any rule action that the Rules and Alerts Wizard support, but you can programmatically create rules that have only the most commonly used rule actions, and not any rule action that the Rules and Alerts Wizard supports. For more information on rule action support, see Specify Rule Actions

Through the Actions property, each rule is associated with a RuleActions object. The RuleActions collection is a fixed object - you cannot add or remove items from this collection. Rule actions that are enabled in the rule will have an enabled rule action in the RuleActions collection. Rule actions that are not enabled in the rule will have a rule action in this collection that has the Enabled property set to False. Rule actions that are not supported during programmatic rule creation can only be enumerated in the RuleActions collection for an existing rule, but because the RuleActions collection is fixed, you cannot create a rule and add such an action to the associated RuleActions collection.

Applies to