Platform SDK: Active Directory, ADSI, and Directory Services |
The IADsCollection::Add method adds a named item to the collection.
HRESULT IADsCollection::Add( BSTR bstrName, VARIANT varItem );
This method supports the standard return values, as well as the following:
For other return values, see ADSI Error Codes.
Collections for a directory service can also consist of a set of immutable objects.
This method is not supported in any of the ADSI system providers.
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
Windows 95/98: Requires Windows 95 or later (with DSClient).
Header: Declared in Iads.h.
IADsCollection::GetObject, IADsCollection::Remove, ADSI Error Codes, ADSI system providers, IDispatch