System.DirectoryServices.ActiveDirectory 命名空間
提供以 Microsoft Active Directory 服務工作為中心建置的高階抽象物件模型。 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. |
ActiveDirectorySiteLink |
ActiveDirectorySiteLink 類別表示可以排程來進行複寫的一組兩個或多個站台,以透過特定的傳輸方式以統一的成本花費來通訊。The ActiveDirectorySiteLink class represents a set of two or more sites that can be scheduled, for replication, to communicate at uniform cost and through a particular transport. |
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 類別是抽象類別 (Abstract Class),表示 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 類別包含與 AdamInstance 或 DomainController 物件的複寫鄰居有關的資訊。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 |
從所有伺服器同步 (Synchronize) 的要求失敗時,會擲回 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 類別包含一對 Domain 或 Forest 物件之間的信任關係資訊。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 輕量型目錄服務 (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 或 c # 進行 .net 程式設計的應用程式開發人員使用。The System.DirectoryServices.ActiveDirectory namespace is intended for use by application developers who are familiar with .NET programming using Visual Basic 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.