Method SetConnectionFailed
SetConnectionFailed(Exception, Boolean)
Handles the error when the connection fails and may attempt to reconnect.
Declaration
protected void SetConnectionFailed(Exception error, bool reconnect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | error | The error that was encountered causing the conneciton to fail. |
| System.Boolean | reconnect | Indicates whether reconnection should be attempted. |
Remarks
Use this method when an established connection is interrupted. Pass the exception that caused the connection to fail and a flag that indicates whether to attempt reconnection.
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 |