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

When to Extend the Schema

· 52CE 我爱测

Extend the schema only if no existing object class fulfills the requirements of your application. Extending the schema is a complex operation; schema changes are replicated to every domain controller in the enterprise forest. Consider this carefully.

Extend the schema only if no existing object class fulfills the requirements of your application. Extending the schema is a complex operation; schema changes are replicated to every domain controller in the enterprise forest. Consider this carefully.

The schema can be extended in three ways:

  • Derive a new subclass from an existing class - the subclass has all of the attributes of the superclass and any attributes you specify. Derive from an existing class:
    • When the existing class requires additional attributes, but otherwise is acceptable.
    • When the ability to transform existing objects of the class into a new class is not required. It is not possible to add a subclass to an existing object.
    • To use the existing Directory Manager snap-in to manage the extended attributes of the objects.
  • Add attributes to an existing class and/or add parent objects for the class. When adding multiple attributes, perform this operation in a structured manner by defining an auxiliary class and adding that auxiliary class to the existing class.
  • Modification of an existing class is required when an application requires the ability to extend existing objects of the class. For example, to add application-specific data to the User object, extend the class User normally, because you must handle existing Users and not just special Users created by your application.
  • Create a new class with the required attributes. Create a new class; that is, a class derived from "Top" when no existing class fulfills the operational requirements.

When you subclass an existing class, any user interface items associated to the original class will not be inherited by the subclass. For example, if you subclass a user object, the property pages and menu items associated to user are not inherited. For this reason, it is preferable to extend an existing object or create an auxiliary class rather than create a subclass.

Whether you subclass an existing class or modify an existing class, you will want to extend tools such as the Active Directory Users and Computers snap-in to manage the extended attributes of the objects. For more information, see Extending the User Interface for Directory Objects.

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)

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

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