Creates default parameters for a sync geodatabase using the given sync direction if it is not null.

This will populate the parameters with values matching what the sync task's feature service and the geodatabase supports. For a geodatabase with SyncModel.Layer then all geodatabase layers will be included.

If the syncDirection is null, then the sync direction will be determined by the service. If the service is read-only then the sync direction will be SyncDirection.Download. Otherwise the sync direction will be SyncDirection.Bidirectional.

If the syncDirection is specified, then it must be compatible with the service editing capabilities. If a service includes any of create, update or delete capability, then both SyncDirection.Bidirectional and SyncDirection.Upload are supported for sync directions. Alternatively, a service that does not have create, update or delete capability is considered read-only and only SyncDirection.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.


a Result containing a sync parameter object of type SyncGeodatabaseParameters with the given sync direction. Other parameters are populated with default values.





a Geodatabase to sync


the SyncDirection to use