Show / Hide Table of Contents

Method CreateDefaultSyncGeodatabaseParametersAsync

CreateDefaultSyncGeodatabaseParametersAsync(Geodatabase)

Creates default parameters for a sync geodatabase.

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 will populate the parameters with values matching what the sync task's feature service and the geodatabase supports.

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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
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 will populate the parameters with values matching what the sync task's feature service and the geodatabase supports.

For a geodatabase with a SyncModel of Layer, all geodatabase layers will be included. If the service is editable (supports create, update and delete) then both Bidirectional and Download will be supported for sync direction. If the service is read only then only Download will be supported. If the given sync direction is not compatible with the 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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.3 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.3 - 100.15
Xamarin.iOS100.3 - 100.15
UWP100.3 - 100.15
In This Article
Back to top Copyright © 2022 Esri.