Platform SDK: Exchange Server

ComparePropsCondition CoClass

The ComparePropsCondition COM class defines an object with properties that you can use to compare two properties.

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

Overview

Use the ComparePropsCondition object to compare two CDO properties.

Class Example

The following example creates a condition that compares whether the CdoPR_ORIGINAL_SENSITIVITY and CdoPR_SENSITIVITY properties are equal.

const CdoPR_ORIGINAL_SENSITIVITY = &H002E0003
const CdoPR_SENSITIVITY          = &H00360003
const REL_EQ                     = 7

Set myCmpPropCond          = CreateObject("MSExchange.ComparePropsCondition")
myCmpPropCond.Operator     = REL_EQ
myCmpPropCond.PropertyTag1 = CdoPR_ORIGINAL_SENSITIVITY
myCmpPropCond.PropertyTag2 = CdoPR_SENSITIVITY
...