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 |
//namespace ArcGIS.Desktop.Mapping.Offline var map = MapView.Active.Map; //await if needed... QueuedTask.Run(() => { //Check map has local syncable content 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, Windows 10, Windows 8.1