IADs::GetEx

Given the name of a property, IADs::GetEx Gets single or multi-values in VARIANT structures from the property cache. Finding no value in the cache invokes an implicit IADs::GetInfoEx. IADs::Get can also be used to retrieve single valued properties.

HRESULT IADs::GetEx(
  BSTR bstrName,    //Name of the property
  VARIANT * pvProp  //Value(s) of the property
);
 

Parameter

bstrName
[in] Name of the property as defined in the ADSI Schema Class Object for this object, for example "MyProperty".
pvProp
[out] Pointer to a location to receive the value(s) of the property.

Return Values

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

S_OK
The property value was retrieved successfully.

See Also

IADs::Get, IADs::Put, IADs::PutEx, Property Cache