Class SyncGeodatabaseJob
The SyncGeodatabaseJob synchronizes changes between a local geodatabase and its sync-enabled ArcGIS feature service.
Implements
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class SyncGeodatabaseJob : Job<IReadOnlyList<SyncLayerResult>>, IJob
Remarks
To make a SyncGeodatabaseJob, use the GeodatabaseSyncTask as follows:
- Create and load the GeodatabaseSyncTask with the Source.
- Obtain the default SyncGeodatabaseParameters for the geodatabase by calling CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase).
- Modify the SyncGeodatabaseParameters as required. For example, specify the synchronization direction.
- Use the SyncGeodatabaseParameters to create a SyncGeodatabaseJob by calling SyncGeodatabase(SyncGeodatabaseParameters, Geodatabase)).
Start the SyncGeodatabaseJob and monitor progress. On completion, examine the SyncLayerResult from the GetResultAsync() to determine whether the synchronization was successful.
Properties
| Name | Description |
|---|---|
| GeodatabaseDeltaInfo | Gets an object containing information on geodatabase upload and download delta files. |
Methods
| Name | Description |
|---|---|
| FromJson(string) | Creates a job from JSON. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
Relevant samples
Edit and sync features: Synchronize offline edits with a feature service.
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.