Show / Hide Table of Contents

Method DisconnectAsync

DisconnectAsync()

Closes the connection to a service.

Declaration
public Task DisconnectAsync()
Returns
Type Description
Task

A Task with no return value.

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.8
.NET200.3 - 300.0
.NET Windows200.3 - 300.0
.NET Android200.3 - 300.0
.NET iOS200.3 - 300.0
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.