This documentation is archived and is not being maintained.

DirectoryServer Class

The DirectoryServer class is an abstract class that represents an Active Directory Domain Services server or AD LDS instance.

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

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

The DirectoryServer type exposes the following members.

Protected methodDirectoryServerInitializes a new instance of the DirectoryServer class.

Public propertyInboundConnectionsRetrieves the inbound replication connections for this directory server.
Public propertyIPAddressRetrieves the IP address of this directory server.
Public propertyNameGets the name of the directory server.
Public propertyOutboundConnectionsGets the outbound replication connections for this directory server.
Public propertyPartitionsGets the partitions on this directory server.
Public propertySiteNameGets the name of the site that this directory server belongs to.
Public propertySyncFromAllServersCallbackGets or sets the synchronization delegate for this directory server.

Public methodCheckReplicationConsistencyUses the Knowledge Consistency Checker (KCC) to verify and recalculate the replication topology for this server.
Public methodDispose()Releases all managed and unmanaged resources that are used by the object.
Protected methodDispose(Boolean)Releases all unmanaged resources and, optionally, all managed resources that are used by the object.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeOverrides the Object.Finalize method. (Overrides Object.Finalize().)
Public methodGetAllReplicationNeighborsRetrieves all of the replication neighbors for this object.
Public methodGetDirectoryEntryRetrieves a DirectoryEntry object that represents the directory server.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetReplicationConnectionFailuresRetrieves a collection of the replication connection failures for this directory server.
Public methodGetReplicationCursorsRetrieves the replication cursor information for the specified partition.
Public methodGetReplicationMetadataRetrieves the replication metadata for a specific Active Directory Domain Services object.
Public methodGetReplicationNeighborsRetrieves the replication neighbors of this directory server for the specified partition.
Public methodGetReplicationOperationInformationRetrieves the current and pending replication operations for this directory server.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
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.
Public methodSyncReplicaFromAllServersCauses this directory server to synchronize the specified partition with all other directory servers in the same site that hosts the partition.
Public methodSyncReplicaFromServerCauses this directory server to synchronize the specified partition with the specified directory server.
Public methodToStringRetrieves the name of the directory server. (Overrides Object.ToString().)
Public methodTriggerSyncReplicaFromNeighborsBegins a synchronization of the specified partition.

.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.