Show / Hide Table of Contents

Method UnregisterGeodatabaseAsync

UnregisterGeodatabaseAsync(Geodatabase)

Unregisters a geodatabase from the server.

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

A geodatabase to unregister.

Returns
Type Description
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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
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
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 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.2.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 100.14
In This Article
Back to top Copyright © 2022 Esri.