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