# OpcClient.ReconnectInterval Property

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClient</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcClient Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

<span class="api-meta">since v2.58</span>

Gets or sets the time between two attempts to reconnect to a halted session.

<div class="api-signature" data-lang="csharp">

```csharp
public int ReconnectInterval { get; set; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Property ReconnectInterval As Integer
```

</div>

**Property value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

The time in milliseconds the client waits before each attempt to reconnect. A value equals zero indicates that there is no reconnect attempt performed.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception) | The value is less than zero. |

**Remarks**

The default value of this property is [DefaultReconnectInterval](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/defaultreconnectinterval).

The first attempt is made one interval after the break has been detected. It activates the existing session again. A server that lost the session, for example because it restarted, rejects that, and the attempt then creates a new session. The client keeps attempting until an attempt succeeds, [MaxReconnectDuration](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/maxreconnectduration) has elapsed or [Disconnect](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/disconnect) is called.
