This documentation is archived and is not being maintained.

DomainController.SyncReplicaFromAllServers Method

Causes this domain controller to synchronize the specified partition with all other domain controllers.

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

public override void SyncReplicaFromAllServers (
	string partition,
	SyncFromAllServersOptions options
)
public void SyncReplicaFromAllServers (
	String partition, 
	SyncFromAllServersOptions options
)
public override function SyncReplicaFromAllServers (
	partition : String, 
	options : SyncFromAllServersOptions
)
Not applicable.

Parameters

partition

The distinguished name of the partition for the domain controller to synchronize.

options

A combination of one or more of the SyncFromAllServersOptions members.

Exception typeCondition

ArgumentNullException

partition is a null reference (Nothing in Visual Basic).

ArgumentException

partition is not valid.

ObjectDisposedException

The current object has been disposed.

SyncFromAllServersOperationException

An error occurred in the synchronization operation.

By default, the replication will only occur with the other domain controllers in the same site. If the options parameter contains the CrossSite value, then the replication will occur with all domain controllers in the forest.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: