Click or drag to resize

GeodatabaseSyncTaskCreateDefaultSyncGeodatabaseParametersAsync Method (Geodatabase, SyncDirection)

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

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public Task<SyncGeodatabaseParameters> CreateDefaultSyncGeodatabaseParametersAsync(
	Geodatabase geodatabase,
	SyncDirection syncDirection
)

Parameters

geodatabase
Type: Esri.ArcGISRuntime.DataGeodatabase
A geodatabase to sync
syncDirection
Type: Esri.ArcGISRuntime.Tasks.OfflineSyncDirection
The sync direction to use.

Return Value

Type: TaskSyncGeodatabaseParameters
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 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.

See Also