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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
Relevant samples
SyncGeodatabase(SyncDirection, Boolean, Geodatabase)
Creates a job to synchronize a geodatabase back to its 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. |
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 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 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.3 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.3 - 100.15 |
Xamarin.iOS | 100.3 - 100.15 |
UWP | 100.3 - 100.15 |