Platform SDK: Exchange Server

ExistsCondition CoClass

The ExistsCondition COM class defines an object that you can use to test for the existence of a particular property (MAPI).

CLSID
D61B2A90-07A1-11D2-BC0D-00C04F8C92F7
ProgID
MSExchange.ExistsCondition
Type Library
Microsoft Exchange 5.5 Rules Type Library 1.0 (Rule.dll)
Threading Model
Single-threaded apartment (STA)
Interfaces
The ExistsCondition class exposes the IExistsCondition dual interface.

Remarks

Use the ExistsCondition to specify a condition that must be satisfied for the rule to apply.

Example

The following example identifies messages where the CdoPR_ACCOUNT property (&H3A00001E) is set:

const CdoPR_ACCOUNT = &H3A00001E

Set objExistsCond         = CreateObject("MSExchange.ExistsCondition")
objExistsCond.PropertyTag = CdoPR_ACCOUNT
...