This documentation is archived and is not being maintained.
Domain Class
Visual Studio 2010
The Domain class represents an Active Directory domain.
System::Object
System.DirectoryServices.ActiveDirectory::ActiveDirectoryPartition
System.DirectoryServices.ActiveDirectory::Domain
System.DirectoryServices.ActiveDirectory::ActiveDirectoryPartition
System.DirectoryServices.ActiveDirectory::Domain
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
The Domain type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Children | Gets the domains that are children of this domain. |
![]() | DomainControllers | Gets the domain controllers in this domain. |
![]() | DomainMode | Gets the mode that this domain is operating in. |
![]() | Forest | Gets the forest that this domain is a member of. |
![]() | InfrastructureRoleOwner | Gets the infrastructure role owner for this domain. |
![]() | Name | Gets the partition name. (Inherited from ActiveDirectoryPartition.) |
![]() | Parent | Gets the parent domain of this domain. |
![]() | PdcRoleOwner | Gets the DomainController object that holds the primary domain controller (PDC) for this domain. |
![]() | RidRoleOwner | Gets the RID master role holder for this domain. |
| Name | Description | |
|---|---|---|
![]() | CreateLocalSideOfTrustRelationship | Creates the local side of a trust relationship with the specified domain. |
![]() | CreateTrustRelationship | Creates both sides of a trust relationship with the specified domain. |
![]() | DeleteLocalSideOfTrustRelationship | Deletes the local side of a trust relationship. |
![]() | DeleteTrustRelationship | Deletes both sides of a trust relationship. |
![]() | Dispose() | Releases all managed and unmanaged resources that are held by the object. (Inherited from ActiveDirectoryPartition.) |
![]() | Dispose(Boolean) | Releases the managed resources that are used by the object and, optionally, releases unmanaged resources. (Inherited from ActiveDirectoryPartition.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindAllDiscoverableDomainControllers() | Finds all of the discoverable domain controllers in this domain. |
![]() | FindAllDiscoverableDomainControllers(String) | Finds all of the discoverable domain controllers in this domain that are also in the specified site. |
![]() | FindAllDomainControllers() | Finds all of the domain controllers in this domain. |
![]() | FindAllDomainControllers(String) | Finds all of the domain controllers in this domain that are also in the specified site. |
![]() | FindDomainController() | Finds any domain controller in this domain. |
![]() | FindDomainController(LocatorOptions) | Finds a domain controller in this domain that meets the specified criteria. |
![]() | FindDomainController(String) | Finds a domain controller in this domain and in the specified site. |
![]() | FindDomainController(String, LocatorOptions) | Finds a domain controller in this domain and in the specified site that meets the specified criteria. |
![]() | GetAllTrustRelationships | Retrieves all of the trust relationships for this domain. |
![]() ![]() | GetComputerDomain | Gets the Domain object that represents the domain to which the local computer is joined. |
![]() ![]() | GetCurrentDomain | Gets the Domain object for the current user credentials in effect for the security context under which the application is running. |
![]() | GetDirectoryEntry | Retrieves a DirectoryEntry object that represents the default naming context of the domain. (Overrides ActiveDirectoryPartition::GetDirectoryEntry().) |
![]() ![]() | GetDomain | Gets the Domain object for the specified context. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetSelectiveAuthenticationStatus | Determines the authentication type of an inbound trust. |
![]() | GetSidFilteringStatus | Determines the SID filtering status of a trust. |
![]() | GetTrustRelationship | Gets the trust relationship between this domain and the specified domain. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RaiseDomainFunctionality | Raises the mode of operation for the domain. |
![]() | RepairTrustRelationship | Repairs a trust relationship. |
![]() | SetSelectiveAuthenticationStatus | Enables or disables selective authentication for an inbound trust. |
![]() | SetSidFilteringStatus | Sets the SID filtering state for the specified domain. |
![]() | ToString | Retrieves a string representation of the current directory partition. (Inherited from ActiveDirectoryPartition.) |
![]() | UpdateLocalSideOfTrustRelationship(String, String) | Updates the password for the local side of a trust relationship. |
![]() | UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) | Updates the password and trust direction for the local side of a trust relationship. |
![]() | UpdateTrustRelationship | Updates the trust direction for an existing trust relationship. The trust directions are updated on both sides of the trust. |
![]() | VerifyOutboundTrustRelationship | Verifies that a previously established outbound trust with the specified domain is valid. |
![]() | VerifyTrustRelationship | Verifies that a previously established trust with the specified domain is valid. |
- DirectoryServicesPermission
Demand value: LinkDemand
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
