Platform SDK: Exchange Server

PropertyCondition CoClass

The PropertyCondition COM class defines an object with properties that you can use to test the value of a property tag.

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

Overview

Use the PropertyCondition object to create a condition based on the value of a CDO property.

Example

The following example creates a condition that identifies messages where the &H0058000B (CdoPR_MESSAGE_CC_ME) property is True.

const CdoPR_MESSAGE_CC_ME = &H0058000B
const REL_EQ              = 7

Set objPropVal   = CreateObject("MSExchange.PropertyValue")
objPropVal.Tag   = CdoPR_MESSAGE_CC_ME
objPropVAl.Value = True

Set objPropCond         = CreateObject("MSExchange.PropertyCondition")
objPropCond.Value       = objPropVal
objPropCond.Operator    = REL_EQ
objPropCond.PropertyTag = CdoPR_MESSAGE_CC_ME
...