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
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
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
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 |