Platform SDK: Exchange Server

IACEs::Delete Method

Deletes the ACE object in the position specified by index from the collection.

IDL Definition

HRESULT Delete( [in] VARIANT Index);

Visual Basic Definition

Sub Delete(Index)

Parameters

Index
The ordinal index or the long-term entry identifier of the object to delete.

Remarks

The index can be expressed as a String (VT_BSTR) representation of the long-term entry identifier for the ACE member, or as an index (VT_I4 or VT_I2).

Example

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
aces.delete strId  ' delete this ACE