Platform SDK: Exchange Server

IRules::Item Method

Returns the Rule object at the indicated position.

IDL Definition

[id(DISPID_DEFAULT)] 
HRESULT Item([in] VARIANT index, [out, retval] IDispatch **pItem)

Visual Basic Definition

Function Item(index) As Object

Parameters

index
An integer specifying the rule to return.

Remarks

If your VBScript code uses a variable for the Index, cast Index to an integer using the CInt() function.

Since this is the default method for this object, you need not supply the method name to access the rule.