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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.3 - 200.8 |
| .NET | 200.3 - 200.8 |
| .NET Windows | 200.3 - 200.8 |
| .NET Android | 200.3 - 200.8 |
| .NET iOS | 200.3 - 200.8 |
| .NET Framework | 200.3 - 200.8 |
| UWP | 200.3 - 200.8 |