Reference
OpcClient.MaxReconnectDuration Property
Gets or sets the time after which the client stops attempting to reconnect to a halted session.
Reference
OpcClient.MaxReconnectDuration Property
- Type
- OpcClient
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcClient Members
- Also in
- Opc.UaFx.Client
Gets or sets the time after which the client stops attempting to reconnect to a halted session.
csharp
public int MaxReconnectDuration { get; set; }vbnet
Public Property MaxReconnectDuration As IntegerProperty value
The time in milliseconds counted from the start of the reconnect. A value equals zero indicates that the client keeps attempting until an attempt succeeds. The default value is zero.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value is less than zero. |
Remarks
When the time has elapsed, the client changes to Disconnected and raises BreakDetected. It does not reconnect again on its own; Connect establishes a new connection. The value has no effect while ReconnectInterval is zero.

