System.DirectoryServices.ActiveDirectory Namespace

System.DirectoryServices.ActiveDirectory 命名空间提供一个围绕 Microsoft Active Directory 服务任务构建的高级别抽象对象模型。 The System.DirectoryServices.ActiveDirectory namespace provides a high level abstraction object model that builds around Microsoft Active Directory services tasks. Active Directory 服务概念(例如,林、域、站点、子网、分区和架构)是此对象模型的一部分。 The Active Directory service concepts such as forest, domain, site, subnet, partition, and schema are part of the object model.

ActiveDirectoryInterSiteTransport

ActiveDirectoryInterSiteTransport 类表示一个站点间传输对象。The ActiveDirectoryInterSiteTransport class represents an inter-site transport object.

ActiveDirectoryObjectExistsException

在创建 Active Directory 域服务对象且该对象已存在于基础目录存储区中时,将引发 ActiveDirectoryObjectExistsException 类异常。The ActiveDirectoryObjectExistsException class exception is thrown when an Active Directory Domain Services object is created and that object already exists in the underlying directory store.

ActiveDirectoryObjectNotFoundException

当在基础目录存储区中找不到请求的对象时,将引发 ActiveDirectoryObjectNotFoundException 类异常。The ActiveDirectoryObjectNotFoundException class exception is thrown when a requested object is not found in the underlying directory store.

ActiveDirectoryOperationException

当基础目录操作失败时,将引发 ActiveDirectoryOperationException 类异常。The ActiveDirectoryOperationException class exception is thrown when an underlying directory operation fails.

ActiveDirectoryPartition

ActiveDirectoryPartition 类是一个抽象类,表示域中的一个目录分区。The ActiveDirectoryPartition class is an abstract class that represents a directory partition in a domain.

ActiveDirectoryReplicationMetadata

ActiveDirectoryReplicationMetadata 类包含一组 Active Directory 域服务属性的相关复制信息。The ActiveDirectoryReplicationMetadata class contains replication information for a set of Active Directory Domain Services attributes.

ActiveDirectoryRoleCollection

ActiveDirectoryRoleCollection 类是一个包含 ActiveDirectoryRole 对象的只读集合。The ActiveDirectoryRoleCollection class is a read-only collection that contains ActiveDirectoryRole objects.

ActiveDirectorySchedule

ActiveDirectorySchedule 类表示 Active Directory 域服务复制的每周日程安排。The ActiveDirectorySchedule class represents the weekly schedule for an Active Directory Domain Services replication.

ActiveDirectorySchema

ActiveDirectorySchema 类表示特定域的架构分区。The ActiveDirectorySchema class represents the schema partition for a particular domain.

ActiveDirectorySchemaClass

ActiveDirectorySchemaClass 类表示包含在架构分区中的架构类定义。The ActiveDirectorySchemaClass class represents a schema class definition that is contained in the schema partition.

ActiveDirectorySchemaClassCollection

ActiveDirectorySchemaClassCollection 类是一个包含 ActiveDirectorySchemaClass 对象的读/写集合。The ActiveDirectorySchemaClassCollection class is a read/write collection that contains ActiveDirectorySchemaClass objects.

ActiveDirectorySchemaProperty

ActiveDirectorySchemaProperty 类表示架构分区中包含的架构属性定义。The ActiveDirectorySchemaProperty class represents a schema property definition that is contained in the schema partition.

ActiveDirectorySchemaPropertyCollection

ActiveDirectorySchemaPropertyCollection 类是一个包含 ActiveDirectorySchemaProperty 对象的读/写集合。The ActiveDirectorySchemaPropertyCollection class is a read/write collection that contains ActiveDirectorySchemaProperty objects.

ActiveDirectoryServerDownException

当服务器无法响应服务请求时,将引发 ActiveDirectoryServerDownException 类异常。The ActiveDirectoryServerDownException class exception is thrown when a server is unavailable to respond to a service request.

ActiveDirectorySite

ActiveDirectorySite 类定义了一组域控制器,按照速度和成本来衡量,这组控制器连接良好。The ActiveDirectorySite class defines a set of domain controllers that are well-connected in terms of speed and cost. 站点对象由一个或多个 IP 子网的集合构成。A site object consists of a set of one or more IP subnets.

ActiveDirectorySiteCollection

ActiveDirectorySiteCollection 类是一个包含 ActiveDirectorySite 对象的读/写集合。The ActiveDirectorySiteCollection class is a read/write collection that contains ActiveDirectorySite objects.

ActiveDirectorySiteLinkBridge

ActiveDirectorySiteLinkBridge 类表示一组通过传输进行通信的站点链接。The ActiveDirectorySiteLinkBridge class represents a set of site links that communicate through a transport.

ActiveDirectorySiteLinkCollection

ActiveDirectorySiteLinkCollection 类是一个包含 ActiveDirectorySiteLink 对象的读/写集合。The ActiveDirectorySiteLinkCollection class is a read/write collection that contains ActiveDirectorySiteLink objects.

ActiveDirectorySubnet

ActiveDirectorySubnet 类表示 Forest 中的子网。The ActiveDirectorySubnet class represents a subnet in a Forest.

ActiveDirectorySubnetCollection

ActiveDirectorySubnetCollection 类是一个包含 ActiveDirectorySubnet 对象的读/写集合。The ActiveDirectorySubnetCollection class is a read/write collection that contains ActiveDirectorySubnet objects.

AdamInstance

AdamInstance 类表示一个 AD LDS 实例服务器。The AdamInstance class represents an AD LDS instance server.

AdamInstanceCollection

AdamInstanceCollection 类是一个包含 AdamInstance 对象的只读集合。The AdamInstanceCollection class is a read-only collection that contains AdamInstance objects.

AdamRoleCollection

AdamRoleCollection 类是包含 AdamRole 项的只读集合。The AdamRoleCollection class is a read-only collection that contains AdamRole items.

ApplicationPartition

ApplicationPartition 类表示特定域的一个应用程序分区。The ApplicationPartition class represents an application partition for a particular domain.

ApplicationPartitionCollection

ApplicationPartitionCollection 类是一个包含 ApplicationPartition 对象的只读集合。The ApplicationPartitionCollection class is a read-only collection that contains ApplicationPartition objects.

AttributeMetadata

AttributeMetadata 类用于包含 Active Directory 域服务特性的复制元数据。The AttributeMetadata class is used to contain replication metadata for an Active Directory Domain Services attribute.

AttributeMetadataCollection

包含 ApplicationPartition 对象的只读集合。A read-only collection that contains ApplicationPartition objects.

ConfigurationSet

ConfigurationSet 类表示一个或多个 AD LDS 实例的配置集。The ConfigurationSet class represents a configuration set for one or more AD LDS instances.

DirectoryContext

DirectoryContext 类标识一个特定目录以及用于访问该目录的凭据。The DirectoryContext class identifies a specific directory and the credentials that are used to access the directory.

DirectoryServer

DirectoryServer 类是一个表示 Active Directory 域服务服务器或 AD LDS 实例的抽象类。The DirectoryServer class is an abstract class that represents an Active Directory Domain Services server or AD LDS instance.

DirectoryServerCollection

DirectoryServerCollection 类是一个包含 DirectoryServer 对象的读/写集合。The DirectoryServerCollection class is a read/write collection that contains DirectoryServer objects.

Domain

Domain 类表示 Active Directory 域。The Domain class represents an Active Directory domain.

DomainCollection

DomainCollection 类是一个包含 Domain 对象的只读集合。The DomainCollection class is a read-only collection that contains Domain objects.

DomainController

DomainController 类表示 Active Directory 域中的一个域控制器。The DomainController class represents a domain controller in an Active Directory domain.

DomainControllerCollection

DomainControllerCollection 类是一个包含 DomainController 对象的只读集合。The DomainControllerCollection class is a read-only collection that contains DomainController objects.

Forest

Forest 类表示一个 Active Directory 域服务目录林。The Forest class represents an Active Directory Domain Services forest.

ForestTrustCollisionException

信任关系管理请求过程中发生信任冲突时,将引发 ForestTrustCollisionException 类异常。The ForestTrustCollisionException class exception is thrown when a trust collision occurs during a trust relationship management request.

ForestTrustDomainInfoCollection

ForestTrustDomainInfoCollection 类是一个包含 ForestTrustDomainInformation 对象的只读集合。The ForestTrustDomainInfoCollection class is a read-only collection that contains ForestTrustDomainInformation objects.

ForestTrustDomainInformation

ForestTrustDomainInformation 类包含有关 Domain 对象的信息,并且包含在 ForestTrustDomainInfoCollection 对象中。The ForestTrustDomainInformation class contains information about a Domain object and is contained in a ForestTrustDomainInfoCollection object.

ForestTrustRelationshipCollision

表示由林信任记录之间的冲突导致的冲突记录。Represents a collision record resulting from a collision between forest trust records.

ForestTrustRelationshipCollisionCollection

ForestTrustRelationshipCollisionCollection 类是一个包含 ForestTrustRelationshipCollision 对象的只读集合。The ForestTrustRelationshipCollisionCollection class is a read-only collection that contains ForestTrustRelationshipCollision objects.

ForestTrustRelationshipInformation

ForestTrustRelationshipInformation 类包含关于两个 Forest 对象之间的任信关系的信息。The ForestTrustRelationshipInformation class contains information about a trust relationship between two Forest objects.

GlobalCatalog

GlobalCatalog 类表示全局目录服务器。The GlobalCatalog class represents a global catalog server. 全局目录服务器是承载全局目录副本的域控制器。A global catalog server is a domain controller that hosts a replica of the global catalog.

GlobalCatalogCollection

GlobalCatalogCollection 类是一个包含 GlobalCatalog 对象的只读集合。The GlobalCatalogCollection class is a read-only collection that contains GlobalCatalog objects.

ReadOnlyActiveDirectorySchemaClassCollection

ReadOnlyActiveDirectorySchemaClassCollection 类是一个包含 ActiveDirectorySchemaClass 对象的只读集合。The ReadOnlyActiveDirectorySchemaClassCollection class is a read-only collection that contains ActiveDirectorySchemaClass objects.

ReadOnlyActiveDirectorySchemaPropertyCollection

ReadOnlyActiveDirectorySchemaPropertyCollection 类是一个包含 ActiveDirectorySchemaProperty 对象的只读集合。The ReadOnlyActiveDirectorySchemaPropertyCollection class is a read-only collection that contains ActiveDirectorySchemaProperty objects.

ReadOnlyDirectoryServerCollection

ReadOnlyDirectoryServerCollection 类是一个包含 DirectoryServer 对象的只读集合。The ReadOnlyDirectoryServerCollection class is a read-only collection that contains DirectoryServer objects.

ReadOnlySiteCollection

ReadOnlySiteCollection 类是 ActiveDirectorySite 对象的只读集合。The ReadOnlySiteCollection class is a read-only collection of ActiveDirectorySite objects.

ReadOnlySiteLinkBridgeCollection

ReadOnlySiteLinkBridgeCollection 类是一个包含 ActiveDirectorySiteLinkBridge 对象的只读集合。The ReadOnlySiteLinkBridgeCollection class is a read-only collection that contains ActiveDirectorySiteLinkBridge objects.

ReadOnlySiteLinkCollection

ReadOnlySiteLinkCollection 类是一个包含 ActiveDirectorySiteLink 对象的只读集合。The ReadOnlySiteLinkCollection class is a read-only collection that contains ActiveDirectorySiteLink objects.

ReadOnlyStringCollection

ReadOnlyStringCollection 类是一个包含 String 对象的只读集合。The ReadOnlyStringCollection class is a read-only collection that contains String objects.

ReplicationConnection

ReplicationConnection 类表示一个复制连接。The ReplicationConnection class represents a replication connection.

ReplicationConnectionCollection

ReplicationConnectionCollection 类是 ReplicationConnection 对象的只读集合。The ReplicationConnectionCollection class is a read-only collection of ReplicationConnection objects.

ReplicationCursor

ReplicationCursor 类表示发生复制操作。The ReplicationCursor class represents a replication operation occurrence.

ReplicationCursorCollection

ReplicationCursorCollection 类是一个包含 ReplicationCursor 对象的只读集合。The ReplicationCursorCollection class is a read-only collection that contains ReplicationCursor objects.

ReplicationFailure

包含有关失败的复制尝试的信息。Contains information about a failed replication attempt.

ReplicationFailureCollection

ReplicationFailureCollection 类是一个包含 ReplicationFailure 对象的只读集合。The ReplicationFailureCollection class is a read-only collection that contains ReplicationFailure objects.

ReplicationNeighbor

ReplicationNeighbor 类包含有关 AdamInstanceDomainController 对象的复制邻居的信息。The ReplicationNeighbor class contains information about a replication neighbor of an AdamInstance or DomainController object.

ReplicationNeighborCollection

ReplicationNeighborCollection 类是一个包含 ReplicationNeighbor 对象的只读集合。The ReplicationNeighborCollection class is a read-only collection that contains ReplicationNeighbor objects.

ReplicationOperation

ReplicationOperation 类表示一个 Active Directory 域服务复制操作。The ReplicationOperation class represents an Active Directory Domain Services replication operation.

ReplicationOperationCollection

ReplicationOperationCollection 类是一个包含 ReplicationOperation 对象的只读集合。The ReplicationOperationCollection class is a read-only collection that contains ReplicationOperation objects.

ReplicationOperationInformation

ReplicationOperationInformation 类包含有关 Active Directory 域服务复制操作的信息。The ReplicationOperationInformation class contains information about an Active Directory Domain Services replication operation.

SyncFromAllServersErrorInformation

包含有关 SyncFromAllServersOperationException 异常的信息。Contains information about a SyncFromAllServersOperationException exception.

SyncFromAllServersOperationException

当来自所有服务器的同步请求失败时,会引发 SyncFromAllServersOperationException 异常。The SyncFromAllServersOperationException exception is thrown when the request to synchronize from all servers fails.

TopLevelName

包含 Forest 中有关顶级域的林信任帐户信息。Contains forest trust account information about a top-level domain in a Forest.

TopLevelNameCollection

TopLevelNameCollection 类是一个包含 TopLevelName 对象的只读集合。The TopLevelNameCollection class is a read-only collection that contains TopLevelName objects.

TrustRelationshipInformation

TrustRelationshipInformation 类包含一对 DomainForest 对象之间的信任关系的信息。The TrustRelationshipInformation class contains information for a trust relationship between a pair of Domain or Forest objects.

TrustRelationshipInformationCollection

TrustRelationshipInformationCollection 类包含 TrustRelationshipInformation 对象的集合。The TrustRelationshipInformationCollection class contains a collection of TrustRelationshipInformation objects.

枚举

ActiveDirectoryRole

标识域中的特定角色。Identifies specific roles within a domain.

ActiveDirectorySiteOptions

指定 ActiveDirectorySite 对象站点选项的位标识符。Specifies the bit identifiers for the ActiveDirectorySite object site options.

ActiveDirectorySyntax

指定 ActiveDirectorySchemaProperty 对象的数据表示(语法)类型。Specifies the data representation (syntax) type of a ActiveDirectorySchemaProperty object.

ActiveDirectoryTransportType

标识复制连接的传输类型。Identifies the transport type of a replication connection.

AdamRole

指示某个 AdamInstance 对象的特定角色。Indicates specific roles of a AdamInstance object.

DirectoryContextType

DirectoryContext 对象指定上下文类型。Specifies the context type for an DirectoryContext object.

DomainCollisionOptions

指定当 CollisionType 属性值为 Domain 时关于林信任冲突的其他信息。Specifies additional information about a forest trust collision when the CollisionType property value is Domain.

DomainMode

指示域正在运行的模式。Indicates the mode that a domain is operating in.

ForestMode

指示运行 Forest 的模式。Indicates the mode in which a Forest is operating.

ForestTrustCollisionType

指定 ForestTrustRelationshipCollision 对象的冲突类型。Specifies the collision type of a ForestTrustRelationshipCollision object.

ForestTrustDomainStatus

指示目录林信任关系的状态。Indicates the status of a forest trust relationship.

HourOfDay

指示一天中的时间(小时)。Indicates the hour of the day.

LocatorOptions

指定用于查找域中的域控制器的搜索标志。Specifies search flags for finding a domain controller in a domain.

MinuteOfHour

指示一小时内的 15 分钟间隔。Indicates the 15-minute intervals within an hour.

NotificationStatus

表示复制连接的通知状态。Represents the notification status of a replication connection.

PropertyTypes

指定属性类型以选择 FindAllProperties(PropertyTypes) 方法的调用时间。Specifies the property types to select when calling the FindAllProperties(PropertyTypes) method.

ReplicationNeighbor.ReplicationNeighborOptions

指定某个 ReplicationNeighbor 对象的选项。Specifies the options for a ReplicationNeighbor object.

ReplicationOperationType

指示特定类型的复制操作。Indicates a specific type of replication operation.

ReplicationSecurityLevel

指定 Active Directory Lightweight Directory (AD LDS) 服务复制身份验证模式。Specifies the Active Directory Lightweight Directory (AD LDS) Services replication authentication mode.

ReplicationSpan

确定复制连接的跨度。Determines the span of a replication connection.

SchemaClassType

指定 ActiveDirectorySchemaClass 对象的类类型。Specifies the class type of an ActiveDirectorySchemaClass object.

SyncFromAllServersErrorCategory

包含有关 SyncFromAllServersOperationException 的信息。Contains information about a SyncFromAllServersOperationException.

SyncFromAllServersEvent

SyncUpdateCallback 委托中使用,用于指定同步事件的类型。Used in the SyncUpdateCallback delegate to specify the type of synchronization event.

SyncFromAllServersOptions

指定执行同步时的其他选项。Specifies additional options when performing a synchronization.

TopLevelNameCollisionOptions

指定当 CollisionType 属性值为 TopLevelName 时关于林信任冲突的其他信息。Specifies additional information about a forest trust collision when the CollisionType property value is TopLevelName.

TopLevelNameStatus

指示目录林中顶级域的目录林信任帐户状态。Indicates the forest trust account status of a top-level domain in a forest.

TrustDirection

指示信任的方向。Indicates the direction of a trust.

TrustType

指示某个 TrustRelationshipInformation 对象的类型。Indicates the type of a TrustRelationshipInformation object.

委托

SyncUpdateCallback

在复制同步期间接收事件通知。Receives event notifications during a replica synchronization.

注解

System.DirectoryServices.ActiveDirectory命名空间用于自动执行 Active Directory 管理任务。The System.DirectoryServices.ActiveDirectory namespace is used to automate Active Directory management tasks. System.DirectoryServices.ActiveDirectory 不用于访问驻留在 Active Directory 或任何其他目录服务内的数据。System.DirectoryServices.ActiveDirectory is not used to access data that resides within Active Directory or any other directory service. System.DirectoryServices应实现此目的使用命名空间。The System.DirectoryServices namespace should be used for this purpose.

System.DirectoryServices.ActiveDirectory 命名空间可专供熟悉使用 Visual Basic .NET 或 C# 进行 .NET Framework 编程的应用程序开发人员使用。The System.DirectoryServices.ActiveDirectory namespace is intended for use by application developers who are familiar with .NET Framework programming using Visual Basic .NET or C#. 有关目录服务编程的知识也是有帮助的。Knowledge of directory services programming is also helpful.

System.DirectoryServices.ActiveDirectory 是的一部分Microsoft Visual Studio 2005Microsoft Visual Studio 2005,在任何操作系统上受支持的Microsoft Visual Studio 2005Microsoft Visual Studio 2005与兼容。System.DirectoryServices.ActiveDirectory is part of Microsoft Visual Studio 2005Microsoft Visual Studio 2005 and is supported on any operating system that Microsoft Visual Studio 2005Microsoft Visual Studio 2005 is compatible with.

类、 方法和属性中的许多System.DirectoryServices.ActiveDirectory命名空间使用LinkDemand代码访问安全选项。Many of the classes, methods, and properties in the System.DirectoryServices.ActiveDirectory namespace use the LinkDemand code access security option. 这意味着代码访问安全性要求仅发生在实时编译期间,仅在调用程序集和不在整个调用堆栈中向上执行该要求。This means that the code access security demand only occurs during just-in- time compilation and that the demand is performed only on the calling assembly and not up the entire call stack. 因此,调用方不应传递到不受信任的代码在运行时此命名空间中创建的对象。Because of this, callers should not pass objects created from this namespace at runtime to untrusted code.