Method SyncGeodatabase
SyncGeodatabase(SyncGeodatabaseParameters, Geodatabase)
Creates a job to synchronize a geodatabase back to a service.
Declaration
public SyncGeodatabaseJob SyncGeodatabase(SyncGeodatabaseParameters parameters, Geodatabase geodatabase)
Parameters
Type | Name | Description |
---|---|---|
SyncGeodatabaseParameters | parameters | Parameters to use to sync the geodatabase. |
Geodatabase | geodatabase | The geodatabase to sync. |
Returns
Type | Description |
---|---|
SyncGeodatabaseJob | The job that handles synchronizing the geodatabase. |
Remarks
For a successfully completed job, the job's result returns an collection of SyncLayerResult, typically the collection is empty. If individual edits failed then the result collection provides these errors grouped by each table using SyncLayerResult instances which in turn contain each edit error.
You should not execute more than one sync on a geodatabase at the same time. This includes any operations that export/import deltas from the local Geodatabase:
- ExportDeltaAsync(Geodatabase, String)
- ApplyDeltaAsync(Geodatabase, String)
- SyncGeodatabaseJob
- OfflineMapSyncJob
An exception will be thrown if there is an active transaction on the geodatabase during sync.
Applies to
Platforms and versions
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
SyncGeodatabase(SyncDirection, Boolean, Geodatabase)
Creates a job to synchronize a geodatabase back to its source ArcGIS feature service using the given sync direction and rollback on failure boolean value.
Declaration
public SyncGeodatabaseJob SyncGeodatabase(SyncDirection syncDirection, bool rollbackOnFailure, Geodatabase geodatabase)
Parameters
Type | Name | Description |
---|---|---|
SyncDirection | syncDirection | Sync direction to use when syncing the geodatabase. |
System.Boolean | rollbackOnFailure |
|
Geodatabase | geodatabase | The geodatabase to sync. |
Returns
Type | Description |
---|---|
SyncGeodatabaseJob | The job that handles synchronizing the geodatabase. |
Remarks
For a successfully completed job, the job's result returns a collection of SyncLayerResult, typically the collection is empty. If individual edits failed then the result collection provides these errors grouped by each table using SyncLayerResult instances which in turn contain each edit error.
If the given sync direction is not compatible with the geodatabase sync task's feature service, the returned job will fail.
You should not execute more than one sync on a geodatabase at the same time. This includes any operations that export/import deltas from the local Geodatabase:
- ExportDeltaAsync(Geodatabase, String)
- ApplyDeltaAsync(Geodatabase, String)
- SyncGeodatabaseJob
- OfflineMapSyncJob
An exception will also be thrown if there is an active transaction on the geodatabase during sync.
Applies to
Platforms and versions
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.3 - 200.6 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 200.6 |