Click or drag to resize

GeodatabaseSyncTaskRegisterGeodatabaseAsync Method

Registers a copy of a sync enabled geodatabase with a service to allow the copy to sync changes.

Namespace:  Esri.ArcGISRuntime.Tasks.Offline
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public Task RegisterGeodatabaseAsync(
	Geodatabase geodatabase


Type: Esri.ArcGISRuntime.DataGeodatabase
a geodatabase to register.

Return Value

Type: Task
A task that represents the asynchronous register operation.
This method is typically used as part of services pattern workflow, sometimes known as a pre-planned workflow. A sync enabled geodatabase is generated centrally and not modified or synced. Copies of this original geodatabase are distributed and loaded onto each user's device. The copy must first be registered with the service to allow the server to identify changes in subsequent sync operations. One of the main benefits of this workflow is a reduction in server load to generate geodatabases for many clients. It is important not to sync the copy before registering to ensure the server can maintain consistent state on each copy. This operation is not the opposite of UnregisterGeodatabaseAsync(Geodatabase) which is used to remove a geodatabase from the service prior to deletion.
See Also