IADsCollection::GetObject

Gets the IADs interface of the Active Directory object in this container identified by the object's schema class and relative name.

HRESULT IADsCollection::GetObject(
  BSTR bstrName,    //Name of item
  VARIANT pvarItem  //Value retrieved
);
 

Parameter

bstrName
[in] Name of the item used by IADsCollection::Add when added to the collection.
pvarItem
[in] Current value of the item.

Return Values

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

S_OK
The interface pointer on the specified object in this collection has been successfully retrieved.

QuickInfo

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

See Also

IEnumVARIANT, ADSI Enumerator Object