Share via


_Rule Members

Include Protected Members
Include Inherited Members

This is a primary interface in a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this primary interface only when the method you want to use shares the same name as an event of the COM object; in this case, cast to this interface to call the method, and cast to the latest events interface to connect to the event. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object. For information about the COM object, see 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.

Public property

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Public property

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Public property

Conditions

Returns a RuleConditions collection object that represents all the available rule conditions for the rule. Read-only.

Public property

Enabled

Returns or sets a Boolean value (bool in C#) that determines if the rule is to be applied. Read/write.

Public property

Exceptions

Returns a RuleConditions collection object that represents all the available rule exception conditions for the rule. Read-only.

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.

Public property

IsLocalRule

Returns a Boolean (bool in C#) that indicates if the rule executes as a client-side rule. Read-only.

Public property

Name

Returns or sets a String (string in C#) representing the name of the rule. Read/write.

Public property

Parent

Returns the parent Object of the specified object. Read-only.

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.

Public property

Session

Returns the NameSpace object for the current session. Read-only.

Top

Methods

 

Name

Description

Public method

Execute

Applies a rule as an one-off operation.

Top

See Also

Reference

_Rule Interface

Microsoft.Office.Interop.Outlook Namespace