Platform SDK: Exchange Server

IRules::Count Property

Returns the number of Rule objects in the collection.

IDL Definition

[propget] HRESULT Count([out, retval] long *pVal)

Visual Basic Definition

Property Count As Long

Example

For i = 1 to objRules.Count
   Set objRule = objRules(CInt(i))
Next