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

Single vs. Multiple Value Attributes

· 52CE 我爱测

The attributes that can exist in a directory are typically defined in the schema for the directory.

The attributes that can exist in a directory are typically defined in the schema for the directory. The schema definition of an attribute specifies a number of characteristics of the attribute, such as the data type and whether an instance of the attribute can have multiple values.

An instance of a single-valued attribute can contain a single value. An instance of a multivalued attribute can contain either a single value or multiple values. Active Directory does not create attributes with empty values—either the attribute contains a valid value or it does not exist on the object.

Note:
In Active Directory and most other LDAP servers, the order of values in a multi-valued attribute is undefined. Also, each value of a multi-valued attribute must be unique.

ADSI normally loads schema data if your directory supports a schema, as Active Directory does. Because ADSI knows the syntax of attributes in the schema, you are not required to specify the attribute type when accessing it. ADSI marshals attribute values to the appropriate data type as defined in the schema.

If your directory has no schema, supply the data type when accessing an attribute.

Note:
Active Directory, Exchange, Windows NT 4.0, and Site Server all have a schema. In addition, Active Directory has an extensible 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)

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

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