Parameters
- map
- The map whose content will be sync'd
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.ArgumentNullException | Map cannot be null |
| System.InvalidOperationException | Map has no syncable content |
{
//Check map has local syncable content
//Note: Run within QueuedTask
var canSyncContent = GenerateOfflineMap.Instance.GetCanSynchronizeReplicas(map);
if (canSyncContent)
{
//Sync Replicas - changes since last sync are pushed to the
//parent replica. Parent changes are pulled to the client.
//Unsaved edits are _not_ sync'd.
GenerateOfflineMap.Instance.SynchronizeReplicas(map);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)