Platform SDK: Active Directory, ADSI, and Directory Services

IADsDeleteOps

The IADsDeleteOps interface specifies a single method that an object can use to delete itself from the underlying directory. For a container object, the method also deletes all its children and the children's children, that is, the whole subtree.

The interface is designed to offer the functionality that complements that provided by the IADsContainer interface. To remove an object from the directory store, you can request its parent object to do the job. That amounts to calling the IADsContainer::Delete method on the contained object. When the object also implements the IADsDeleteOps interface, you can ask the object to remove itself (and all the contained objects) by calling the IADsDeleteOps::DeleteObject method directly on the object.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of the object's programmable interface.
GetIDsOfNames Maps the name of the method or property to the DISPID.
Invoke Calls one of the object's methods, or gets and sets one of its properties.

IADsDeleteOps methods Description
DeleteObject Deletes the object from the directory.

Requirements

  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.

See Also

Access Control and Object Deletion, IADsContainer, IADsContainer::Delete, IADsDeleteOps Interface