Parameters
- map
- The map to check for syncable content
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 |
//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) { //TODO - use status } });
//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