SyncUpdateCallback Delegate
Assembly: System.DirectoryServices (in system.directoryservices.dll)
'Declaration Public Delegate Function SyncUpdateCallback ( _ eventType As SyncFromAllServersEvent, _ targetServer As String, _ sourceServer As String, _ exception As SyncFromAllServersOperationException _ ) As Boolean 'Usage Dim instance As New SyncUpdateCallback(AddressOf HandlerMethod)
/** @delegate */ public delegate boolean SyncUpdateCallback ( SyncFromAllServersEvent eventType, String targetServer, String sourceServer, SyncFromAllServersOperationException exception )
Not applicable.
Parameters
- eventType
One of the SyncFromAllServersEvent members that specifies the type of event.
- targetServer
Contains the DNS name of the server that is the target of the replication. This parameter will be a null reference (Nothing in Visual Basic) if it is not used by the notification.
- sourceServer
Contains the DNS name of the server that is the source of the replication. This parameter will be a null reference (Nothing in Visual Basic) if it is not used by the notification.
- exception
A SyncFromAllServersOperationException object that contains additional information about any error that has occurred. This parameter will be a null reference (Nothing in Visual Basic) if no error has occurred.
Return Value
true if the SyncReplicaFromAllServers method invoked on a ADAMInstance, DirectoryServer or DomainController object should resume; false if the SyncReplicaFromAllServers method should terminate.operation takes a long time to complete and potentially could fail on a server. The SyncUpdateCallback callback function enables the application to indicate whether the SyncReplicaFromAllServers method should continue executing. For example, the application could return false to terminate SyncReplicaFromAllServers
execution if an error occurs. Another scenario in which this capability would be used is to terminate SyncReplicaFromAllServers
execution once the application detects that synchronization has completed for a certain target server or source server pair.
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.Reference
System.DirectoryServices.ActiveDirectory NamespaceSyncFromAllServersEvent
SyncFromAllServersOperationException
DomainController.SyncFromAllServersCallback Property
AdamInstance.SyncFromAllServersCallback Property
System.DirectoryServices.ActiveDirectory.ADAMInstance.SyncReplicaFromAllServers(System.String,System.DirectoryServices.ActiveDirectory.SyncFromAllServersOptions)
DomainController.SyncReplicaFromAllServers