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

Viewing Containers as Leaf Nodes

· 52CE 我爱测

Any object in Active Directory Domain Services can be a container of other objects.

Any object in Active Directory Domain Services can be a container of other objects. This can clutter the user interface, so it is possible to declare that an object of a specific class be only be displayed as a leaf in the user interface. The treatAsLeaf attribute is a single-valued display specifier attribute that determines if objects of that class should be only be displayed as leaf objects. This attribute is a Boolean value that, if TRUE, indicates that objects of the class should only be displayed as leaf elements. If FALSE, indicates that objects of the class can be displayed as a container or a leaf. Like all display specifier attributes, the treatAsLeaf attribute is set on a per-locale basis, so this attribute can be localized as required. For example, the User-Display for the English locale (0409) display specifier has the treatAsLeaf attribute set to TRUE by default. This causes the user interface to display all User objects as leaf objects.

To set the value of the treatAsLeaf attribute

  1. Bind to the desired display attribute in the desired locale. For more information and a code example, see DisplaySpecifiers Container.
  2. Use the IADs::Put method to set the treatAsLeaf attribute to either TRUE or FALSE.
  3. To commit changes to the directory, call the IADs::SetInfo method.

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)

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

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