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

Using the ADSI Schema

· 52CE 我爱测

A schema defines the universe of objects stored in a directory.

A schema defines the universe of objects stored in a directory. In Active Directory, the schema specifies what attributes a directory service object can, or must, have. It also specifies the value range and the syntax of the attributes and whether they support single or multiple values. In short, the schema is organized by class definitions, attribute definitions, and attribute syntax. ADSI provides three interfaces for reading attribute, class, and syntax data from a schema: IADsClass, IADsProperty, and IADsSyntax.

Active Directory uses a set of schema objects to provide dynamically extensible schema management. For more information about an unknown object, look up its associated schema objects. To create a new class definition or extend an existing class definition, you can create or extend the appropriate schema objects. Schema objects are organized in the schema container of a given directory. To access an object schema class, use the IADs.Schema property of the object to obtain the ADsPath string and use that string to bind to an IADsClass interface on the object schema class.

To determine attribute definitions, that is, the range of values, the syntax, and so on, inspect the schema attribute objects for each property supported by the directory service object. For more information about how to access the schema attribute objects, see IADsProperty.

ADSI abstracts the syntax data as necessary and enables you to use IADsSyntax to identify the syntax required to represent object data.

For more information about the Active Directory schema, see Active Directory Schema. For code examples to use to read the schema container, see Reading the Schema.

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)

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

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