大网数据广告活动
域与目录服务

IADsNamespaces Property Methods (Iads.h)

· 52CE 我爱测

The IADsNamespaces interface property methods get and set the properties described in the following table. For more information, see Interface Property Methods.

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

IADsContainer.GetObject

IADsNamespaces

Interface Property Methods

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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。