# OpcClient.CreateNodeHistory Method

> Reference: Creates historical values 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 |
|---|---|
| [CreateNodeHistory(OpcNodeId, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-opc-uafx-opcnodeid-opc-uafx-opcvalue) | Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node. |
| [CreateNodeHistory(OpcNodeId, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(OpcNodeId, params OpcValue\[\])](#createnodehistory-opc-uafx-opcnodeid-opc-uafx-opcvalue-array) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(string, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-string-opc-uafx-opcvalue) | Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node. |
| [CreateNodeHistory(string, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-string-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(string, params OpcValue\[\])](#createnodehistory-system-string-opc-uafx-opcvalue-array) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-int32-opc-uafx-opcvalue) | Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node. |
| [CreateNodeHistory(int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(int, params OpcValue\[\])](#createnodehistory-system-int32-opc-uafx-opcvalue-array) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(string, int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-string-system-int32-opc-uafx-opcvalue) | Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node. |
| [CreateNodeHistory(string, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-string-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(string, int, params OpcValue\[\])](#createnodehistory-system-string-system-int32-opc-uafx-opcvalue-array) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(int, int, OpcValue)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-int32-system-int32-opc-uafx-opcvalue) | Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node. |
| [CreateNodeHistory(int, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-system-int32-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node. |
| [CreateNodeHistory(OpcCreateNodeHistory)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/createnodehistory#createnodehistory-opc-uafx-client-opccreatenodehistory) | Creates historical values of the node as defined by the `command` 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. |

## CreateNodeHistory(OpcNodeId, OpcValue)

Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

## CreateNodeHistory(string, OpcValue)

Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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. |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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. |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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. |

## CreateNodeHistory(int, OpcValue)

Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

## CreateNodeHistory(string, int, OpcValue)

Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

## CreateNodeHistory(int, int, OpcValue)

Creates a historical value of the node identified by the `nodeId` specified by inserting the `value` specified as a new entry into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

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

Creates historical values of the node identified by the `nodeId` specified by inserting the `values` specified as new entries into the history of the node.

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

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

</div>

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

```vbnet
Public Function CreateNodeHistory(
    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 insert into the history of the node. |

**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). |

## CreateNodeHistory(OpcCreateNodeHistory)

Creates historical values of the node as defined by the `command` specified.

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

```csharp
public OpcStatusCollection CreateNodeHistory(OpcCreateNodeHistory command)
```

</div>

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

```vbnet
Public Function CreateNodeHistory(
    command As OpcCreateNodeHistory) As OpcStatusCollection
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `command` | [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) | The [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) command which defines the node and the values to insert into its history. |

**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). |
