Share via


Rule Members

Include Protected Members
Include Inherited Members

Represents an Outlook rule.

The Rule type exposes the following members.

Properties

  Name Description
Public property Actions Returns a RuleActions collection object that represents all the available rule actions for the rule. Read-only. (Inherited from _Rule.)
Public property Application Returns an Application object that represents the parent Outlook application for the object. Read-only. (Inherited from _Rule.)
Public property Class Returns an OlObjectClass constant indicating the object's class. Read-only. (Inherited from _Rule.)
Public property Conditions Returns a RuleConditions collection object that represents all the available rule conditions for the rule. Read-only. (Inherited from _Rule.)
Public property Enabled Returns or sets a Boolean value (bool in C#) that determines if the rule is to be applied. Read/write. (Inherited from _Rule.)
Public property Exceptions Returns a RuleConditions collection object that represents all the available rule exception conditions for the rule. Read-only. (Inherited from _Rule.)
Public property ExecutionOrder Returns or sets an Integer (int in C#) value that indicates the order of execution of the rule among other rules in the Rules collection. Read/write. (Inherited from _Rule.)
Public property IsLocalRule Returns a Boolean (bool in C#) that indicates if the rule executes as a client-side rule. Read-only. (Inherited from _Rule.)
Public property Name Returns or sets a String (string in C#) representing the name of the rule. Read/write. (Inherited from _Rule.)
Public property Parent Returns the parent Object of the specified object. Read-only. (Inherited from _Rule.)
Public property RuleType Returns a constant from the OlRuleType enumeration that indicates if the rule applies to messages that are being sent or received. Read-only. (Inherited from _Rule.)
Public property Session Returns the NameSpace object for the current session. Read-only. (Inherited from _Rule.)

Top

Methods

  Name Description
Public method Execute Applies a rule as an one-off operation. (Inherited from _Rule.)

Top

See Also

Reference

Rule Interface

Microsoft.Office.Interop.Outlook Namespace