Rediger

Del via


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

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.

DomainModeLevel

Gets the mode level 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.

Methods

CreateLocalSideOfTrustRelationship(String, TrustDirection, String)

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

CreateTrustRelationship(Domain, TrustDirection)

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

DeleteLocalSideOfTrustRelationship(String)

Deletes the local side of a trust relationship.

DeleteTrustRelationship(Domain)

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)
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, LocatorOptions)

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

FindDomainController(String)

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

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.

GetDomain(DirectoryContext)

Gets the Domain object for the specified context.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSelectiveAuthenticationStatus(String)

Determines the authentication type of an inbound trust.

GetSidFilteringStatus(String)

Determines the SID filtering status of a trust.

GetTrustRelationship(String)

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(DomainMode)

Raises the mode of operation for the domain.

RaiseDomainFunctionalityLevel(Int32)

Raises the functionality level for the domain.

RepairTrustRelationship(Domain)

Repairs a trust relationship.

SetSelectiveAuthenticationStatus(String, Boolean)

Enables or disables selective authentication for an inbound trust.

SetSidFilteringStatus(String, Boolean)

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(Domain, TrustDirection)

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

VerifyOutboundTrustRelationship(String)

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

VerifyTrustRelationship(Domain, TrustDirection)

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

Applies to

See also