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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.0 - 200.8 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 200.8 | 
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 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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.3 - 200.8 | 
| Xamarin.Android | 100.3 - 100.15 | 
| Xamarin.iOS | 100.3 - 100.15 | 
| UWP | 100.3 - 200.8 |