# OpcCreateNodeHistory Members

> Reference: Represents a command which creates values in the history of a node.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcCreateNodeHistory</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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [OpcUpdateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcupdatenodehistory/members), [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/members), [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/members).

## Constructors

### OpcCreateNodeHistory

<span class="api-meta">10 overloads</span>

| Overload | Description |
|---|---|
| [OpcCreateNodeHistory(OpcNodeId, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/members#opccreatenodehistory-opc-uafx-opcnodeid-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(OpcNodeId, params OpcValue\[\])](#opccreatenodehistory-opc-uafx-opcnodeid-opc-uafx-opcvalue-array) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(string, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/members#opccreatenodehistory-system-string-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(string, params OpcValue\[\])](#opccreatenodehistory-system-string-opc-uafx-opcvalue-array) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/members#opccreatenodehistory-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(int, params OpcValue\[\])](#opccreatenodehistory-system-int32-opc-uafx-opcvalue-array) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified. |
| [OpcCreateNodeHistory(string, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/members#opccreatenodehistory-system-string-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified. |
| [OpcCreateNodeHistory(string, int, params OpcValue\[\])](#opccreatenodehistory-system-string-system-int32-opc-uafx-opcvalue-array) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified. |
| [OpcCreateNodeHistory(int, int, IEnumerable&lt;OpcValue&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/members#opccreatenodehistory-system-int32-system-int32-system-collections-generic-ienumerable-of-opc-uafx-opcvalue) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified. |
| [OpcCreateNodeHistory(int, int, params OpcValue\[\])](#opccreatenodehistory-system-int32-system-int32-opc-uafx-opcvalue-array) | Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified. |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, values As IEnumerable(Of OpcValue))
```

</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 in whose history the values are to be created. |
| `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; | The values to create in the history of 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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As OpcNodeId, ParamArray values As OpcValue())
```

</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 in whose history the values are to be created. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | The values to create in the history of 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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As String, values As IEnumerable(Of OpcValue))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node in whose history the values are to be created. |
| `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; | The values to create in the history of 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` 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. |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As String, ParamArray values As OpcValue())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node in whose history the values are to be created. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | The values to create in the history of 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` 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. |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As Integer, values As IEnumerable(Of OpcValue))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node in whose history the values are to be created. |
| `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; | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(nodeId As Integer, ParamArray values As OpcValue())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node in whose history the values are to be created. |
| `values` | params [OpcValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvalue/)[] | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node in whose history the values are to be created. |
| `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; | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` 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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(
    nodeId As String,
    namespaceIndex As Integer,
    ParamArray values As OpcValue())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual node identifier of the node in whose history the values are to be created. |
| `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/)[] | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` 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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified.

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

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

</div>

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

```vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    values As IEnumerable(Of OpcValue))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node in whose history the values are to be created. |
| `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; | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` 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 `values` is a null reference (Nothing in Visual Basic). |

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

Initializes a new instance of the [OpcCreateNodeHistory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opccreatenodehistory/) class using the `nodeId`, `namespaceIndex` and `values` specified.

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

```csharp
public OpcCreateNodeHistory(
    int nodeId,
    int namespaceIndex,
    params OpcValue[] values)
```

</div>

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

```vbnet
Public Sub New(
    nodeId As Integer,
    namespaceIndex As Integer,
    ParamArray values As OpcValue())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `nodeId` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric node identifier of the node in whose history the values are to be created. |
| `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/)[] | The values to create in the history of the node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The node identifier specified by `nodeId` and `namespaceIndex` 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 `values` is a null reference (Nothing in Visual Basic). |
