Show / Hide Table of Contents

Method CreateDefaultSyncGeodatabaseParametersAsync

CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase)

Creates default parameters to synchronize a geodatabase using the SyncGeodatabaseJob.

Declaration
public Task<SyncGeodatabaseParameters> CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase geodatabase)
Parameters
Type Name Description
Geodatabase geodatabase

A geodatabase to sync

Returns
Type Description
System.Threading.Tasks.Task<SyncGeodatabaseParameters>

A task that represents the asynchronous create default sync geodatabase parameters operation. The value of the TResult parameter is the SyncGeodatabaseParameters.

Remarks

This populates the parameters with values that match the geodatabase sync task's feature service and the geodatabase.

For a geodatabase with a SyncModel of Layer, all geodatabase layers will be included. If the service is read-only then the sync direction will be Download. Otherwise the sync direction will be Bidirectional.

Applies to

Platforms and versions
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
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.

CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase, SyncDirection)

Creates default parameters for a sync geodatabase using the given sync direction.

Declaration
public Task<SyncGeodatabaseParameters> CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase geodatabase, SyncDirection syncDirection)
Parameters
Type Name Description
Geodatabase geodatabase

A geodatabase to sync.

SyncDirection syncDirection

The sync direction to use.

Returns
Type Description
System.Threading.Tasks.Task<SyncGeodatabaseParameters>

A task that represents the asynchronous create default sync geodatabase parameters operation. The value of the task result is the SyncGeodatabaseParameters.

Remarks

This populates the parameters with values that match the geodatabase sync task's feature service and the geodatabase.

For a geodatabase with a SyncModel of Layer, all geodatabase layers are included. A service is editable if it has capabilities that include any of create, update or delete. In this case both Bidirectional and Upload are supported sync directions. Alternatively, a service that does not have create, update or delete capability is considered read-only and only Download will be supported. If the given sync direction is not compatible with the geodatabase sync task's feature service or the geodatabase is not sync-enabled, the returned task will fail.

Applies to

Platforms and versions
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.3 - 200.8
Xamarin.Android100.3 - 100.15
Xamarin.iOS100.3 - 100.15
UWP100.3 - 200.8
In This Article
Back to top Copyright © 2022 Esri.