The IADsNamespaces interface property methods get and set the properties described in the following table. For more information, see Interface Property Methods.
Properties
DefaultContainer
The DefaultContainer property identifies a base container object to which you can bind and use as a starting point when browsing. This data is stored and retrieved from the following registry value.
HKEY_CURRENT_USER
Software
Microsoft
ADs
DefaultContainer
ADSI defines the DefaultContainer property to provide a quick way of getting a pointer to a previously defined ADSI container object.
Access type: Read/write
Scripting data type: BSTR
// C++ method syntax
HRESULT get_DefaultContainer(
[out] BSTR* pbstrDefault
);
HRESULT put_DefaultContainer(
[in] BSTR bstrDefault
);
Remarks
Providers must supply this property on a per-user basis. The default container is set immediately after the invocation of IADsNamespaces::put_DefaultContainer. Calling IADs.SetInfo is not required. In fact, the system-supplied namespaces object returns E_NOTIMPL for the IADs.SetInfo method called on this object. When a container is the namespaces object, an enumeration operation always results in a list of provider-specific namespace objects. When IADsContainer.GetObject is used to obtain a namespace object, the bstrClass parameter is ignored. This is because the container, that is, the namespaces object, contains only one type of object, namely, provider-specific namespace objects.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | Iads.h |
| DLL | Activeds.dll |
| IID | IID_IADsNamespaces is defined as 28B96BA0-B330-11CF-A9AD-00AA006BC149 |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
