Platform SDK: Exchange Server |
Retrieves the ACE object in the position specified by index.
[id(DISPID_VALUE)] HRESULT Item( [in] VARIANT Index, [out, retval] VARIANT* pItem);
Function Item(index) as Variant
Note that the DISPID for this member is set to DISPID_VALUE which implies that all IDispatch::Invoke method invocations default to it if this DISPID value is specified. This makes for a nice shorthand in some languages such as Visual Basic by not requiring the member name Item to be explicitly specified. The index can be any of the VARIANT subtypes VT_BSTR, VT_I4, or VT_I2.
If a VT_BSTR is supplied, it is used to retrieve an object reference using the dictionary key the object is stored under. This value is the same as the ACE object's IACE::ID property, and is a string representation of the member's long-term entry identifier.
If either an integer (VT_I2) or Long value (VT_I4) is used, this value is used to retrieve the object using its ordinal index in the collection.
... ' code ommited...create aclobject,ace and AddressEntry object ace.id = member.id aces.add ace ' ID is converted on the ace object internally strId = ace.id ' new value that's not equal to member.id above. ... ' do other things aclobject.ACEs.delete strId ' delete this ACE using its long term id ... aclobject.update