Deletes the specified Active Directory object from this container object.
HRESULT IADsContainer::Delete(
BSTR bstrClass, //Name of the schema class of this object
BSTR bstrRelativeName //Relative name of the object to create
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
When you delete an object, make sure you delete the interface pointers to that object. Deleting an object removes it from the underlying file system immediately. Any interface pointers held by the application for the deleted object are still valid because the interface pointers refer to Active Directory objects in memory. SetInfo and GetInfo calls using interface pointers for a deleted object return an error.
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.