Class SyncGeodatabaseJob
The SyncGeodatabaseJob synchronizes changes between a local geodatabase and its sync-enabled ArcGIS feature service.
Inheritance
System.Object
SyncGeodatabaseJob
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class SyncGeodatabaseJob : Job<IReadOnlyList<SyncLayerResult>>
Remarks
To make a SyncGeodatabaseJob, use the GeodatabaseSyncTask as follows:
-
Construct and load the GeodatabaseSyncTask with the
. - 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
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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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.