Show / Hide Table of Contents

Method UnregisterGeodatabaseAsync

UnregisterGeodatabaseAsync(Geodatabase)

Unregisters a geodatabase from its source ArcGIS feature service. This removes the services replica id.

Declaration
public Task UnregisterGeodatabaseAsync(Geodatabase geodatabase)
Parameters
Type Name Description
Geodatabase geodatabase

A geodatabase to unregister.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the asynchronous unregister geodatabase operation.

Remarks

After unregistering a geodatabase it can no longer be synced back to the service. This is often used prior to deleting a local geodatabase. This operation is not related to RegisterGeodatabaseAsync(Geodatabase), which is for registering copies of a sync-enabled geodatabase.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Generate geodatabase: Generate a local geodatabase from an online feature service.

UnregisterGeodatabaseAsync(Guid)

Unregisters a geodatabase from a service removing the service's replica id. This overload uses the geodatabase's sync ID rather than a reference to the geodatabase itself.

Declaration
public Task UnregisterGeodatabaseAsync(Guid syncId)
Parameters
Type Name Description
System.Guid syncId

The sync ID of the geodatabase to unregister.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the asynchronous unregister geodatabase operation.

Remarks

This method is used to unregister a geodatabase from a service using the sync ID. This is commonly used to enable cleanup of the service after the local geodatabase has already been deleted. See SyncId. After unregistering a geodatabase it can no longer be synced back to the service. This operation is not related to RegisterGeodatabaseAsync(Geodatabase), which is for registering copies of a sync-enabled geodatabase.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.