Platform SDK: Exchange Server

IRule::Condition Property

Returns the Condition object defining the rule condition.

IDL Definition

[propget] HRESULT Condition([out, retval] IDispatch **pVal) 
[propput] HRESULT Condition([in] IDispatch* newVal)

Visual Basic Definition

Property Condition As Object

Remarks

The object reference contained in the Condition property derives from the ICondition interface. If there is only one condition for the rule, the returned object reference can be of type IContentCondition, IPropertyCondition, IComparePropsCondition, or IExistsCondition. If the condition is composite (containing more than one condition), the object reference should be of type ILogicalCondition. The conditions that make up the composite condition are contained in the LogicalCondition object exposing the ILogicalCondition interface.