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 |
---|---|---|
Exception | error | The error that was encountered causing the conneciton to fail. |
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.2 |
.NET 6.0 | 200.2 |
.NET 6.0 Windows | 200.2 |
.NET 6.0 Android | 200.2 |
.NET 6.0 iOS | 200.2 |
.NET Framework | 200.2 |
UWP | 200.2 |