IADsNamespaces interface

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.

Members

The IADsNamespaces interface inherits from IDispatch and IADs. IADsNamespaces also has these types of members:

Properties

The IADsNamespaces interface has these properties.

PropertyAccess typeDescription

DefaultContainer

Read/write

Gets and sets the default container name for the current user.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Iads.h

DLL

Activeds.dll

IID

IID_IADsNamespaces is defined as 28B96BA0-B330-11CF-A9AD-00AA006BC149

See also

ADsGetObject
IADsContainer

 

 

Show:
© 2014 Microsoft