IADsNamespaces interface (iads.h)

The IADsNamespaces interface is implemented by the ADs provider and is used for managing namespace objects. A namespace object is a provider-specific top-level container and corresponds to the root node of a directory tree. The ADSI namespaces object serves as an entry point into the underlying directory and allows directory service administrators to enumerate the currently installed namespace objects.

This interface supports two property methods to get and set the DefaultContainer property which holds the path to a container object. The default container is the base node from which browsing of the directory tree proceeds. References of any children objects can be made relative to this default container. The DefaultContainer property makes it more efficient and convenient for a client to reference repetitively a contained object.

Obtain a pointer to the IADsNamespaces interface when you bind to the object using the "ADs:" string:

Dim ns As IADsNamespaces
Set ns = GetObject("ADs:")

Non-Automation clients can use the ADsGetObject helper function instead.

IADsNamespaces *pNs;
hr = ADsGetObject(L"ADs:", IID_IADsNamespaces, (void**)&pNs);

In addition to the IADsNamespaces interface, the ADSI namespaces object also implements the IADsContainer interface.


The IADsNamespaces interface inherits from the IADs interface.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h

See also