Domain Class

 

The Domain class represents an Active Directory domain.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)


[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, 
	Unrestricted = true)]
public class Domain : ActiveDirectoryPartition

NameDescription
System_CAPS_pubpropertyChildren

Gets the domains that are children of this domain.

System_CAPS_pubpropertyDomainControllers

Gets the domain controllers in this domain.

System_CAPS_pubpropertyDomainMode

Gets the mode that this domain is operating in.

System_CAPS_pubpropertyDomainModeLevel

Gets the mode level that this domain is operating in.

System_CAPS_pubpropertyForest

Gets the forest that this domain is a member of.

System_CAPS_pubpropertyInfrastructureRoleOwner

Gets the infrastructure role owner for this domain.

System_CAPS_pubpropertyName

Gets the partition name.(Inherited from ActiveDirectoryPartition.)

System_CAPS_pubpropertyParent

Gets the parent domain of this domain.

System_CAPS_pubpropertyPdcRoleOwner

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

System_CAPS_pubpropertyRidRoleOwner

Gets the RID master role holder for this domain.

NameDescription
System_CAPS_pubmethodCreateLocalSideOfTrustRelationship(String, TrustDirection, String)

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

System_CAPS_pubmethodCreateTrustRelationship(Domain, TrustDirection)

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

System_CAPS_pubmethodDeleteLocalSideOfTrustRelationship(String)

Deletes the local side of a trust relationship.

System_CAPS_pubmethodDeleteTrustRelationship(Domain)

Deletes both sides of a trust relationship.

System_CAPS_pubmethodDispose()

Releases all managed and unmanaged resources that are held by the object.(Inherited from ActiveDirectoryPartition.)

System_CAPS_protmethodDispose(Boolean)

Releases the managed resources that are used by the object and, optionally, releases unmanaged resources.(Inherited from ActiveDirectoryPartition.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFindAllDiscoverableDomainControllers()

Finds all of the discoverable domain controllers in this domain.

System_CAPS_pubmethodFindAllDiscoverableDomainControllers(String)

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

System_CAPS_pubmethodFindAllDomainControllers()

Finds all of the domain controllers in this domain.

System_CAPS_pubmethodFindAllDomainControllers(String)

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

System_CAPS_pubmethodFindDomainController()

Finds any domain controller in this domain.

System_CAPS_pubmethodFindDomainController(LocatorOptions)

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

System_CAPS_pubmethodFindDomainController(String)

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

System_CAPS_pubmethodFindDomainController(String, LocatorOptions)

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

System_CAPS_pubmethodGetAllTrustRelationships()

Retrieves all of the trust relationships for this domain.

System_CAPS_pubmethodSystem_CAPS_staticGetComputerDomain()

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

System_CAPS_pubmethodSystem_CAPS_staticGetCurrentDomain()

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

System_CAPS_pubmethodGetDirectoryEntry()

Retrieves a DirectoryEntry object that represents the default naming context of the domain.(Overrides ActiveDirectoryPartition.GetDirectoryEntry().)

System_CAPS_pubmethodSystem_CAPS_staticGetDomain(DirectoryContext)

Gets the Domain object for the specified context.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetSelectiveAuthenticationStatus(String)

Determines the authentication type of an inbound trust.

System_CAPS_pubmethodGetSidFilteringStatus(String)

Determines the SID filtering status of a trust.

System_CAPS_pubmethodGetTrustRelationship(String)

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

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRaiseDomainFunctionality(DomainMode)

Raises the mode of operation for the domain.

System_CAPS_pubmethodRaiseDomainFunctionalityLevel(Int32)

Raises the functionality level for the domain.

System_CAPS_pubmethodRepairTrustRelationship(Domain)

Repairs a trust relationship.

System_CAPS_pubmethodSetSelectiveAuthenticationStatus(String, Boolean)

Enables or disables selective authentication for an inbound trust.

System_CAPS_pubmethodSetSidFilteringStatus(String, Boolean)

Sets the SID filtering state for the specified domain.

System_CAPS_pubmethodToString()

Retrieves a string representation of the current directory partition.(Inherited from ActiveDirectoryPartition.)

System_CAPS_pubmethodUpdateLocalSideOfTrustRelationship(String, String)

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

System_CAPS_pubmethodUpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

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

System_CAPS_pubmethodUpdateTrustRelationship(Domain, TrustDirection)

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

System_CAPS_pubmethodVerifyOutboundTrustRelationship(String)

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

System_CAPS_pubmethodVerifyTrustRelationship(Domain, TrustDirection)

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

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: