Show / Hide Table of Contents

Class SyncGeodatabaseJob

The SyncGeodatabaseJob synchronizes changes between a local geodatabase and its sync-enabled ArcGIS feature service.

Inheritance
System.Object
Job<System.Collections.Generic.IReadOnlyList<SyncLayerResult>>
SyncGeodatabaseJob
Job<IReadOnlyList<SyncLayerResult>>.Messages
Job<IReadOnlyList<SyncLayerResult>>.Error
Job<IReadOnlyList<SyncLayerResult>>.GetResultAsync()
Job<IReadOnlyList<SyncLayerResult>>.ServerJobId
Job<IReadOnlyList<SyncLayerResult>>.Status
Job<IReadOnlyList<SyncLayerResult>>.Progress
Job<IReadOnlyList<SyncLayerResult>>.CancelAsync()
Job<IReadOnlyList<SyncLayerResult>>.Pause()
Job<IReadOnlyList<SyncLayerResult>>.Start()
Job<IReadOnlyList<SyncLayerResult>>.ToJson()
Job<IReadOnlyList<SyncLayerResult>>.CheckStatusAsync()
Job<IReadOnlyList<SyncLayerResult>>.ProgressChanged
Job<IReadOnlyList<SyncLayerResult>>.MessageAdded
Job<IReadOnlyList<SyncLayerResult>>.StatusChanged
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:

  • 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

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.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.
In This Article
Back to top Copyright © 2022 Esri.