AdamInstance.SyncReplicaFromAllServers Method (String, SyncFromAllServersOptions)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Synchronizes the specified partition with all other domain controllers.

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

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, 
	Unrestricted = true)]
[DirectoryServicesPermissionAttribute(SecurityAction.InheritanceDemand, 
	Unrestricted = true)]
public override void SyncReplicaFromAllServers(
	string partition,
	SyncFromAllServersOptions options
)

Parameters

partition
Type: System.String

A String that contains the distinguished name of the partition of the domain controller to synchronize.

options
Type: System.DirectoryServices.ActiveDirectory.SyncFromAllServersOptions

A combination of one of more of the SyncFromAllServersOptions members.

Exception Condition
ArgumentNullException

The partition parameter is null.

ArgumentException

The partition parameter is not valid.

ObjectDisposedException

The object has been disposed.

SyncFromAllServersOperationException

An error occurred in the synchronization operation.

.NET Framework
Available since 2.0
Return to top
Show: