# OpcClient.ReplaceNodeHistory Method

> Reference: Replaces existing entries of the history of the node as defined by the command specified.

<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">15 overloads</span>

| Overload | Description |
|---|---|
| [ReplaceNodeHistory(OpcReplaceNodeHistory)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-opc-uafx-client-opcreplacenodehistory) | Replaces existing entries of the history of the node as defined by the `command` specified. |
| [ReplaceNodeHistory(OpcNodeId, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-opc-uafx-opcnodeid-opc-uafx-opcvalue) | Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified. |
| [ReplaceNodeHistory(OpcNodeId, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(OpcNodeId, params OpcValue\[\])](#replacenodehistory-opc-uafx-opcnodeid-opc-uafx-opcvalue-array) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(string, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-string-opc-uafx-opcvalue) | Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified. |
| [ReplaceNodeHistory(string, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-string-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(string, params OpcValue\[\])](#replacenodehistory-system-string-opc-uafx-opcvalue-array) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-int32-opc-uafx-opcvalue) | Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified. |
| [ReplaceNodeHistory(int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(int, params OpcValue\[\])](#replacenodehistory-system-int32-opc-uafx-opcvalue-array) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(string, int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-string-system-int32-opc-uafx-opcvalue) | Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified. |
| [ReplaceNodeHistory(string, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-string-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(string, int, params OpcValue\[\])](#replacenodehistory-system-string-system-int32-opc-uafx-opcvalue-array) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |
| [ReplaceNodeHistory(int, int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-int32-system-int32-opc-uafx-opcvalue) | Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified. |
| [ReplaceNodeHistory(int, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/replacenodehistory#replacenodehistory-system-int32-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) | The client is not connected to the server or the service execution failed upon different circumstances; for more details see exception details. |
| [ObjectDisposedException](https://learn.microsoft.com/dotnet/api/system.objectdisposedexception) | The object has been disposed of. |

## ReplaceNodeHistory(OpcReplaceNodeHistory)

Replaces existing entries of the history of the node as defined by the `command` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(OpcReplaceNodeHistory command)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    command As OpcReplaceNodeHistory) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `command` | [OpcReplaceNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcreplacenodehistory/) | The [OpcReplaceNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcreplacenodehistory/) command which defines the node and the values to replace the existing entries of its history with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) instances the server reports for the command or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `command` or one of the values of the command is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(OpcNodeId, OpcValue)

Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified.

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

```csharp
public OpcStatus ReplaceNodeHistory(OpcNodeId nodeId, OpcValue value)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As OpcNodeId,
    value As OpcValue) As OpcStatus
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node whose history is to be updated. |
| `value` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) to replace the existing entry of the history of the node with. |

**Returns**

[OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/)

The [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the `value` or, if it reports no status per value, for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or the `value` is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(OpcNodeId, IEnumerable&lt;OpcValue&gt;)

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    OpcNodeId nodeId,
    IEnumerable<OpcValue> values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As OpcNodeId,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node whose history is to be updated. |
| `values` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)&gt; | A sequence of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or the `values` sequence or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(OpcNodeId, params OpcValue\[\])

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    OpcNodeId nodeId,
    params OpcValue[] values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As OpcNodeId,
    ParamArray values As OpcValue()) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the node whose history is to be updated. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | An array of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `nodeId` or the `values` array or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(string, OpcValue)

Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified.

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

```csharp
public OpcStatus ReplaceNodeHistory(string nodeId, OpcValue value)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    value As OpcValue) As OpcStatus
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `value` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) to replace the existing entry of the history of the node with. |

**Returns**

[OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/)

The [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the `value` or, if it reports no status per value, for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

## ReplaceNodeHistory(string, IEnumerable&lt;OpcValue&gt;)

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    IEnumerable<OpcValue> values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `values` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)&gt; | A sequence of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` sequence or one of its items is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

## ReplaceNodeHistory(string, params OpcValue\[\])

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    params OpcValue[] values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    ParamArray values As OpcValue()) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | An array of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` array or one of its items is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `nodeId` is not a valid node identifier expression (see [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#parse)) and [AlwaysParseStringIdentifiers](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcautomatism/members#alwaysparsestringidentifiers) is false. |

## ReplaceNodeHistory(int, OpcValue)

Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified.

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

```csharp
public OpcStatus ReplaceNodeHistory(int nodeId, OpcValue value)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As Integer,
    value As OpcValue) As OpcStatus
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `value` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) to replace the existing entry of the history of the node with. |

**Returns**

[OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/)

The [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the `value` or, if it reports no status per value, for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is equals zero, which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(int, IEnumerable&lt;OpcValue&gt;)

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    IEnumerable<OpcValue> values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `values` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)&gt; | A sequence of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is equals zero, which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` sequence or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(int, params OpcValue\[\])

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    params OpcValue[] values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As Integer,
    ParamArray values As OpcValue()) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | An array of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is equals zero, which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` array or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(string, int, OpcValue)

Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified.

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

```csharp
public OpcStatus ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    OpcValue value)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    value As OpcValue) As OpcStatus
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `value` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) to replace the existing entry of the history of the node with. |

**Returns**

[OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/)

The [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the `value` or, if it reports no status per value, for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(string, int, IEnumerable&lt;OpcValue&gt;)

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `values` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)&gt; | A sequence of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` sequence or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(string, int, params OpcValue\[\])

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    string nodeId,
    int namespaceIndex,
    params OpcValue[] values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray values As OpcValue()) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node whose history is to be updated. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | An array of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is a null reference (Nothing in Visual Basic) or equals [Empty](https://learn.microsoft.com/dotnet/api/system.string.empty), which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` array or one of its items is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(int, int, OpcValue)

Replaces an existing entry of the history of the node identified by the `nodeId` specified by the `value` specified.

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

```csharp
public OpcStatus ReplaceNodeHistory(
    int nodeId,
    int namespaceIndex,
    OpcValue value)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    value As OpcValue) As OpcStatus
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `value` | [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) | The [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) to replace the existing entry of the history of the node with. |

**Returns**

[OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/)

The [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for the `value` or, if it reports no status per value, for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is equals zero, which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `value` is a null reference (Nothing in Visual Basic). |

## ReplaceNodeHistory(int, int, IEnumerable&lt;OpcValue&gt;)

Replaces existing entries of the history of the node identified by the `nodeId` specified by the `values` specified.

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

```csharp
public OpcStatusCollection ReplaceNodeHistory(
    int nodeId,
    int namespaceIndex,
    IEnumerable<OpcValue> values)
```

</div>

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

```vbnet
Public Function ReplaceNodeHistory(
    nodeId As Integer,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue)) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node whose history is to be updated. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace within that the node with the `nodeId` specified can be located. |
| `values` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)&gt; | A sequence of the [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/) instances to replace the existing entries of the history of the node with. |

**Returns**

[OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/)

An [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) with the [OpcStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatus/) the server reports for each value or, if it reports no status per value, only with the status for the node.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `nodeId` is equals zero, which results in a null identifier (see [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#isnull)). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `values` sequence or one of its items is a null reference (Nothing in Visual Basic). |
