Add a named item to this ADSI collection.
HRESULT IADsCollection::Add(
BSTR bstrName, //Name of item
VARIANT varItem //Item to add to the collection
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
Collections for a directory service can also consist of a set of objects that cannot be changed.
Collections that do not support direct addition of new items must return E_NOTIMPL.
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.