Upravit

Sdílet prostřednictvím


RuleCondition Interface

Definition

The RuleCondition object represents either a condition that must be met before a rule executes, or an exception condition that must not be met before a rule executes.

public interface class RuleCondition : Microsoft::Office::Interop::Outlook::_RuleCondition
[System.Runtime.InteropServices.Guid("000630D9-0000-0000-C000-000000000046")]
public interface RuleCondition : Microsoft.Office.Interop.Outlook._RuleCondition
Public Interface RuleCondition
Implements _RuleCondition
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _RuleCondition.

RuleCondition is the base class for rule conditions that are supported in programmatic rule creation. The classes derived from RuleCondition include:

The Rules object model provides partial parity with the Rules and Alerts Wizard in the Outlook user interface. It supports the most commonly used rule actions and conditions. Although it does not support creating rules with each rule action or rule condition that the Wizard supports, you can still enumerate and enable these rule actions and conditions in existing rules.

For more information on rule conditions, see Specifying Rule ConditionsHow to: Create a Rule to Move Specific E-mails to a Folder

Properties

Application

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

(Inherited from _RuleCondition)
Class

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

(Inherited from _RuleCondition)
ConditionType

Returns a constant in the OlRuleConditionType enumeration that indicates the type of condition for the RuleCondition object. Read-only.

(Inherited from _RuleCondition)
Enabled

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

(Inherited from _RuleCondition)
Parent

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

(Inherited from _RuleCondition)
Session

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

(Inherited from _RuleCondition)

Applies to