Domain Domain Domain Domain Class

Definition

The Domain class represents an Active Directory domain.

public ref class Domain : System::DirectoryServices::ActiveDirectory::ActiveDirectoryPartition
public class Domain : System.DirectoryServices.ActiveDirectory.ActiveDirectoryPartition
type Domain = class
    inherit ActiveDirectoryPartition
Public Class Domain
Inherits ActiveDirectoryPartition
Inheritance

Properties

Children Children Children Children

Gets the domains that are children of this domain.

DomainControllers DomainControllers DomainControllers DomainControllers

Gets the domain controllers in this domain.

DomainMode DomainMode DomainMode DomainMode

Gets the mode that this domain is operating in.

DomainModeLevel DomainModeLevel DomainModeLevel DomainModeLevel

Gets the mode level that this domain is operating in.

Forest Forest Forest Forest

Gets the forest that this domain is a member of.

InfrastructureRoleOwner InfrastructureRoleOwner InfrastructureRoleOwner InfrastructureRoleOwner

Gets the infrastructure role owner for this domain.

Name Name Name Name

Gets the partition name.

(Inherited from ActiveDirectoryPartition)
Parent Parent Parent Parent

Gets the parent domain of this domain.

PdcRoleOwner PdcRoleOwner PdcRoleOwner PdcRoleOwner

Gets the DomainController object that holds the primary domain controller (PDC) for this domain.

RidRoleOwner RidRoleOwner RidRoleOwner RidRoleOwner

Gets the RID master role holder for this domain.

Methods

CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String) CreateLocalSideOfTrustRelationship(String, TrustDirection, String)

Creates the local side of a trust relationship with the specified domain.

CreateTrustRelationship(Domain, TrustDirection) CreateTrustRelationship(Domain, TrustDirection) CreateTrustRelationship(Domain, TrustDirection) CreateTrustRelationship(Domain, TrustDirection)

Creates both sides of a trust relationship with the specified domain.

DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String) DeleteLocalSideOfTrustRelationship(String)

Deletes the local side of a trust relationship.

DeleteTrustRelationship(Domain) DeleteTrustRelationship(Domain) DeleteTrustRelationship(Domain) DeleteTrustRelationship(Domain)

Deletes both sides of a trust relationship.

Dispose() Dispose() Dispose() Dispose()

Releases all managed and unmanaged resources that are held by the object.

(Inherited from ActiveDirectoryPartition)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.

(Inherited from ActiveDirectoryPartition)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindAllDiscoverableDomainControllers() FindAllDiscoverableDomainControllers() FindAllDiscoverableDomainControllers() FindAllDiscoverableDomainControllers()

Finds all of the discoverable domain controllers in this domain.

FindAllDiscoverableDomainControllers(String) FindAllDiscoverableDomainControllers(String) FindAllDiscoverableDomainControllers(String) FindAllDiscoverableDomainControllers(String)

Finds all of the discoverable domain controllers in this domain that are also in the specified site.

FindAllDomainControllers() FindAllDomainControllers() FindAllDomainControllers() FindAllDomainControllers()

Finds all of the domain controllers in this domain.

FindAllDomainControllers(String) FindAllDomainControllers(String) FindAllDomainControllers(String) FindAllDomainControllers(String)

Finds all of the domain controllers in this domain that are also in the specified site.

FindDomainController() FindDomainController() FindDomainController() FindDomainController()

Finds any domain controller in this domain.

FindDomainController(LocatorOptions) FindDomainController(LocatorOptions) FindDomainController(LocatorOptions) FindDomainController(LocatorOptions)

Finds a domain controller in this domain that meets the specified criteria.

FindDomainController(String) FindDomainController(String) FindDomainController(String) FindDomainController(String)

Finds a domain controller in this domain and in the specified site.

FindDomainController(String, LocatorOptions) FindDomainController(String, LocatorOptions) FindDomainController(String, LocatorOptions) FindDomainController(String, LocatorOptions)

Finds a domain controller in this domain and in the specified site that meets the specified criteria.

GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships() GetAllTrustRelationships()

Retrieves all of the trust relationships for this domain.

GetComputerDomain() GetComputerDomain() GetComputerDomain() GetComputerDomain()

Gets the Domain object that represents the domain to which the local computer is joined.

GetCurrentDomain() GetCurrentDomain() GetCurrentDomain() GetCurrentDomain()

Gets the Domain object for the current user credentials in effect for the security context under which the application is running.

GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry() GetDirectoryEntry()

Retrieves a DirectoryEntry object that represents the default naming context of the domain.

GetDomain(DirectoryContext) GetDomain(DirectoryContext) GetDomain(DirectoryContext) GetDomain(DirectoryContext)

Gets the Domain object for the specified context.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String) GetSelectiveAuthenticationStatus(String)

Determines the authentication type of an inbound trust.

GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String) GetSidFilteringStatus(String)

Determines the SID filtering status of a trust.

GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String) GetTrustRelationship(String)

Gets the trust relationship between this domain and the specified domain.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RaiseDomainFunctionality(DomainMode) RaiseDomainFunctionality(DomainMode) RaiseDomainFunctionality(DomainMode) RaiseDomainFunctionality(DomainMode)

Raises the mode of operation for the domain.

RaiseDomainFunctionalityLevel(Int32) RaiseDomainFunctionalityLevel(Int32) RaiseDomainFunctionalityLevel(Int32) RaiseDomainFunctionalityLevel(Int32)

Raises the functionality level for the domain.

RepairTrustRelationship(Domain) RepairTrustRelationship(Domain) RepairTrustRelationship(Domain) RepairTrustRelationship(Domain)

Repairs a trust relationship.

SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean) SetSelectiveAuthenticationStatus(String, Boolean)

Enables or disables selective authentication for an inbound trust.

SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean) SetSidFilteringStatus(String, Boolean)

Sets the SID filtering state for the specified domain.

ToString() ToString() ToString() ToString()

Retrieves a string representation of the current directory partition.

(Inherited from ActiveDirectoryPartition)
UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String) UpdateLocalSideOfTrustRelationship(String, String)

Updates the password for the local side of a trust relationship.

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String) UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

Updates the password and trust direction for the local side of a trust relationship.

UpdateTrustRelationship(Domain, TrustDirection) UpdateTrustRelationship(Domain, TrustDirection) UpdateTrustRelationship(Domain, TrustDirection) UpdateTrustRelationship(Domain, TrustDirection)

Updates the trust direction for an existing trust relationship. The trust directions are updated on both sides of the trust.

VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String) VerifyOutboundTrustRelationship(String)

Verifies that a previously established outbound trust with the specified domain is valid.

VerifyTrustRelationship(Domain, TrustDirection) VerifyTrustRelationship(Domain, TrustDirection) VerifyTrustRelationship(Domain, TrustDirection) VerifyTrustRelationship(Domain, TrustDirection)

Verifies that a previously established trust with the specified domain is valid.

Security

DirectoryServicesPermission
Demand value: LinkDemand

Applies to

See also