DomainController Class

The DomainController class represents a domain controller in an Active Directory domain.

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

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public class DomainController : DirectoryServer

The DomainController type exposes the following members.

  NameDescription
Protected methodDomainControllerInitializes a new instance of the DomainController class.
Top

  NameDescription
Public propertyCurrentTimeGets the current date and time from this domain controller.
Public propertyDomainGets the domain that this domain controller is a member of.
Public propertyForestGets the forest that this domain controller is a member of.
Public propertyHighestCommittedUsnGets the highest update sequence number that has been committed to this domain controller.
Public propertyInboundConnectionsGets the inbound replication connections for this domain controller. (Overrides DirectoryServer.InboundConnections.)
Public propertyIPAddressGets the IP address of this domain controller. (Overrides DirectoryServer.IPAddress.)
Public propertyNameGets the name of the directory server. (Inherited from DirectoryServer.)
Public propertyOSVersionGets the operating system version of this domain controller.
Public propertyOutboundConnectionsGets the outbound replication connections for this domain controller. (Overrides DirectoryServer.OutboundConnections.)
Public propertyPartitionsGets the partitions on this directory server. (Inherited from DirectoryServer.)
Public propertyRolesGets the roles that this domain controller serves.
Public propertySiteNameGets the name of the site that this domain controller belongs to. (Overrides DirectoryServer.SiteName.)
Public propertySyncFromAllServersCallbackGets or sets the synchronization delegate for this domain controller. (Overrides DirectoryServer.SyncFromAllServersCallback.)
Top

  NameDescription
Public methodCheckReplicationConsistencyUses the Knowledge Consistency Checker (KCC) to verify the replication topology for this domain controller. (Overrides DirectoryServer.CheckReplicationConsistency().)
Public methodDispose()Releases all managed and unmanaged resources that are used by the object. (Inherited from DirectoryServer.)
Protected methodDispose(Boolean)Causes the object to release all managed and/or unmanaged resources. (Overrides DirectoryServer.Dispose(Boolean).)
Public methodEnableGlobalCatalogPromotes this domain controller to a global catalog server.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeOverrides the Object.Finalize method. (Overrides DirectoryServer.Finalize().)
Public methodStatic memberFindAll(DirectoryContext)Finds all domain controllers in the specified context.
Public methodStatic memberFindAll(DirectoryContext, String)Finds all domain controllers in the specified context and site.
Public methodStatic memberFindOne(DirectoryContext)Finds a single domain controller in the specified context.
Public methodStatic memberFindOne(DirectoryContext, LocatorOptions)Finds a single domain controller in the specified context, allowing for additional search options.
Public methodStatic memberFindOne(DirectoryContext, String)Finds a single domain controller in the specified context and site.
Public methodStatic memberFindOne(DirectoryContext, String, LocatorOptions)Finds a single domain controller in the specified context and site, allowing for additional search options.
Public methodGetAllReplicationNeighborsRetrieves the replication neighbors for this domain controller. (Overrides DirectoryServer.GetAllReplicationNeighbors().)
Public methodGetDirectoryEntryRetrieves a DirectoryEntry object that represents the directory server. (Inherited from DirectoryServer.)
Public methodGetDirectorySearcherRetrieves a DirectorySearcher object for the domain controller.
Public methodStatic memberGetDomainControllerRetrieves a DomainController object for the specified context.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetReplicationConnectionFailuresRetrieves a list of the replication connection failures recorded by this domain controller. (Overrides DirectoryServer.GetReplicationConnectionFailures().)
Public methodGetReplicationCursorsRetrieves the replication cursor information for the specified partition. (Overrides DirectoryServer.GetReplicationCursors(String).)
Public methodGetReplicationMetadataRetrieves the replication metadata for a specific Active Directory Domain Services object. (Overrides DirectoryServer.GetReplicationMetadata(String).)
Public methodGetReplicationNeighborsRetrieves the replication neighbors for the specified partition. (Overrides DirectoryServer.GetReplicationNeighbors(String).)
Public methodGetReplicationOperationInformationRetrieves the current and pending replication operations for this domain controller. (Overrides DirectoryServer.GetReplicationOperationInformation().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsGlobalCatalogDetermines if this domain controller is a global catalog server.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMoveToAnotherSiteMoves the directory server to another site within the forest or configuration set. (Inherited from DirectoryServer.)
Public methodSeizeRoleOwnershipCauses this domain controller to take ownership of the specified role.
Public methodSyncReplicaFromAllServersCauses this domain controller to synchronize the specified partition with all other domain controllers. (Overrides DirectoryServer.SyncReplicaFromAllServers(String, SyncFromAllServersOptions).)
Public methodSyncReplicaFromServerCauses this domain controller to synchronize the specified partition with the specified domain controller. (Overrides DirectoryServer.SyncReplicaFromServer(String, String).)
Public methodToStringRetrieves the name of the directory server. (Inherited from DirectoryServer.)
Public methodTransferRoleOwnershipCauses ownership of the specified role to be transferred to this domain controller.
Public methodTriggerSyncReplicaFromNeighborsBegins a synchronization of the specified partition. (Overrides DirectoryServer.TriggerSyncReplicaFromNeighbors(String).)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft