Show / Hide Table of Contents

Method DisconnectAsync

DisconnectAsync()

Closes the connection to a service.

Declaration
public Task DisconnectAsync()
Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task that represents the asynchronous disconnect operation.

Remarks

Use this method to explicitly disconnect from a data source. When this method completes, the ConnectionStatus is set to Disconnected or Failed.

If this method is called when a data source has a ConnectionStatus of Connecting, the current connection attempt is cancelled.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.7
.NET200.3 - 200.7
.NET Windows200.3 - 200.7
.NET Android200.3 - 200.7
.NET iOS200.3 - 200.7
.NET Framework200.3 - 200.7
UWP200.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.