IADsGroup::Remove

Removes the specified ADSI object from this group. This does not affect the ADSI object itself, just its membership in this group.

HRESULT IADsGroup::Remove(
  BSTR bstrItemToBeRemoved  //ADsPath of the object
);
 

Parameter

bstrItemToBeRemoved
[in] ADsPath of the object to be removed from the group.

Return Values

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

S_OK
The object was successfully removed.

QuickInfo

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

See Also

IADsMembers, ADSI Group Object, ADSI Members Object