IADsCollection::Remove

Removes the named item from this ADSI collection object.

HRESULT IADsCollection::Remove(
  BSTR bstrItemToBeRemoved  //Name of item to remove
);
 

Parameter

bstrItemToBeRemoved
[in] Name of the item as it was specified by IADsCollection::Add.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The named item has been successfully removed from this collection object.

Remarks

Collections for a directory service can also consist of a set of objects that cannot be changed.

Notes to Implementers

Collections that do not support direct removal of items must return E_NOTIMPL.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsCollection::Add