8.1.1 IADsNamespaces

The IADsNamespaces object is used to get and set the default container. It supports the IADsContainer interface and one additional interface, IADsNamespaces. The interface definition is as follows:

[ object, uuid(IID_IADsNamespaces), oleautomation, dual ]

interface IADsNamespaces: IADs

{

// Read/write properties.

[propget]

HRESULT DefaultContainer ([out, retval]BSTR *pbstrDefault);

[propput]

HRESULT DefaultContainer ([in]BSTR bstrDefault);

};

Method

Syntax

Description

DefaultContainer

ADsPath

Gets and sets the default container value. If no value has been set, the Namespaces object returns the container that it determines is the most relevant.