Show / Hide Table of Contents

Method CloseAsync

CloseAsync()

Closes this service geodatabase.

Declaration
public Task CloseAsync()
Returns
Type Description
Task

A task that represents the asynchronous close operation.

Remarks

A request to stop any active reading or editing sessions with the feature service is sent and once this asynchronous process is complete, this service geodatabase will be closed.

Before calling this method, there should be no references to all related data. For example, terminate fetch versions, create version, switch, apply or undo edits, remove feature layers, and release tables from map.

After calling this method, accessing this service geodatabase or any of its connected tables will fail with GeodatabaseClosedException.

Closing this service geodatabase is not necessary if it has not been loaded.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.10 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.10 - 100.15
In This Article
Back to top Copyright © 2022 Esri.