Platform SDK: Exchange Server

SizeCondition CoClass

The SizeCondition COM class defines an object with properties that you can use to test the size of a property.

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

Remarks

Use the SizeCondition object to specify a condition based on the size of a CDO property.

Example

The following example identifies messages whose Body property is greater than 1Mbyte.

const REL_GT     = 2
const CdoPR_BODY = &H1000001E

Set SizeProp         = CreateObject("MSExchange.SizeCondition")
SizeProp.PropertyTag = CdoPR_BODY
SizeProp.Operator    = REL_GT
SizeProp.Size        = &H100000
...