ArcGIS Pro 2.9 API Reference Guide
SynchronizeReplicas Method

ArcGIS.Desktop.Mapping.Offline Namespace > GenerateOfflineMap Class : SynchronizeReplicas Method
The map whose content will be sync'd
Performs a bi-directional sync between all replica content in the map. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SynchronizeReplicas( 
   Map map
)
Public Sub SynchronizeReplicas( _
   ByVal map As Map _
) 

Parameters

map
The map whose content will be sync'd
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Map cannot be null
Map has no syncable content
Remarks
Calling SynchronizeReplicas on a map with no syncable content will throw a System.InvalidOperationException.
Unsaved edits will not be sync'd. Unsaved edits should be saved or discarded before calling SynchronizeReplicas. Sync'd edits returned from the service by SynchronizeReplicas are not undo-able.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GenerateOfflineMap Class
GenerateOfflineMap Members