# OpcAddDataItemNode&lt;T&gt; Members

> Reference: Defines a single command of the IOpcAddNodesService used to add one data item node.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcAddDataItemNode&lt;T&gt;</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</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 [OpcAddDataItemNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode/members), [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/members), [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/members), [OpcAddNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnode/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

### OpcAddDataItemNode

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

| Overload | Description |
|---|---|
| [OpcAddDataItemNode(OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add. |
| [OpcAddDataItemNode(OpcName, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-t0) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add. |
| [OpcAddDataItemNode(OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-t0) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-t0) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype-t0) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid-t0) | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-t0)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-t0)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-t0)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype-t0)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, T)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid-t0)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. |

#### OpcAddDataItemNode(OpcName)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add. The according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) to identify and access the new node is determined by the service. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(OpcName name)
```

</div>

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

```vbnet
Public Sub New(name As OpcName)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcName, T)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add. The according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) to identify and access the new node is determined by the service. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(OpcName name, T value)
```

</div>

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

```vbnet
Public Sub New(name As OpcName, value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `value` | T | The initial value of the new data item node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcName, OpcNodeId)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(OpcName name, OpcNodeId nodeId)
```

</div>

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

```vbnet
Public Sub New(name As OpcName, nodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, T)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(OpcName name, OpcNodeId nodeId, T value)
```

</div>

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

```vbnet
Public Sub New(name As OpcName, nodeId As OpcNodeId, value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `value` | T | The initial value of the new data item node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
```

</div>

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

```vbnet
Public Sub New(name As OpcName, nodeId As OpcNodeId, parentNodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, T)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    T value)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `value` | T | The initial value of the new data item node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the `referenceType` specified as the type of reference.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `referenceType` | [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) | One of the members defined by the [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) enumeration to use to setup the reference between the new node and the existing parent node identified by `parentNodeId`. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, T)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the `referenceType` specified as the type of reference.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    T value)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `referenceType` | [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) | One of the members defined by the [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) enumeration to use to setup the reference between the new node and the existing parent node identified by `parentNodeId`. |
| `value` | T | The initial value of the new data item node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the type of reference identified by the `referenceTypeId` specified.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using the type of reference identified by `referenceTypeId`. |
| `referenceTypeId` | [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/) which identifies the type of reference to use for the new node and the existing parent node identified by `parentNodeId`. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `parentNodeId` or `referenceTypeId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name`, `nodeId`, `parentNodeId` or `referenceTypeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId, T)

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the `name` of the data item node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the type of reference identified by the `referenceTypeId` specified.

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

```csharp
public OpcAddDataItemNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    T value)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using the type of reference identified by `referenceTypeId`. |
| `referenceTypeId` | [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/) which identifies the type of reference to use for the new node and the existing parent node identified by `parentNodeId`. |
| `value` | T | The initial value of the new data item node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `parentNodeId` or `referenceTypeId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name`, `nodeId`, `parentNodeId` or `referenceTypeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcVariableType, OpcName)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` defined. The according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) to identify and access the new node is determined by the service. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(OpcVariableType type, OpcName name)
```

</div>

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

```vbnet
Protected Sub New(type As OpcVariableType, name As OpcName)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcVariableType, OpcName, T)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` defined. The according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) to identify and access the new node is determined by the service. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(OpcVariableType type, OpcName name, T value)
```

</div>

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

```vbnet
Protected Sub New(type As OpcVariableType, name As OpcName, value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `value` | T | The initial value of the new data variable node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId)
```

</div>

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

```vbnet
Protected Sub New(type As OpcVariableType, name As OpcName, nodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, T)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the [ObjectsFolder](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#objectsfolder) node using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    T value)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `value` | T | The initial value of the new data variable node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, T)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    T value)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `value` | T | The initial value of the new data variable node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the `referenceType` specified as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `referenceType` | [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) | One of the members defined by the [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) enumeration to use to setup the reference between the new node and the existing parent node identified by `parentNodeId`. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, T)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the `referenceType` specified as the type of reference.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    T value)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using [HasComponent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hascomponent) as the type of reference. |
| `referenceType` | [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) | One of the members defined by the [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) enumeration to use to setup the reference between the new node and the existing parent node identified by `parentNodeId`. |
| `value` | T | The initial value of the new data variable node. |

**Exceptions**

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

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the type of reference identified by the `referenceTypeId` specified.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using the type of reference identified by `referenceTypeId`. |
| `referenceTypeId` | [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/) which identifies the type of reference to use for the new node and the existing parent node identified by `parentNodeId`. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `parentNodeId` or `referenceTypeId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name`, `nodeId`, `parentNodeId` or `referenceTypeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddDataItemNode(OpcVariableType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, T)

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/) class using the specified `type` of data item node to add, which shall be accessible by the `name` and `nodeId` defined. The new node will be a child of the node identified by `parentNodeId` using the type of reference identified by the `referenceTypeId` specified.

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

```csharp
protected OpcAddDataItemNode(
    OpcVariableType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    T value)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    value As T)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) | One of the members defined by the [OpcVariableType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcvariabletype/) enumeration which identifies the predefined underlying type definition the new node will represent an instance of. |
| `name` | [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) | The [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) through that the new data item node can be accessed. |
| `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/) through that the new node can be identified and accessed. In case there [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is specified the server will determine the according [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) by its own. |
| `parentNodeId` | [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 parent node to reference using the type of reference identified by `referenceTypeId`. |
| `referenceTypeId` | [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/) which identifies the type of reference to use for the new node and the existing parent node identified by `parentNodeId`. |
| `value` | T | The initial value of the new data variable node. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `parentNodeId` or `referenceTypeId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `name` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null). |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `name`, `nodeId`, `parentNodeId` or `referenceTypeId` is a null reference (Nothing in Visual Basic). |

## Properties

### DataType

<span class="api-meta">override</span>

Gets or sets a value which defines a pre-defined used [DataTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/members#datatypeid) as one of the members defined by the [OpcDataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatype/) enumeration to simplify querying standard data types. A null reference (Nothing in Visual Basic) indicates that the attribute is undefined and its default value is used.

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

```csharp
public override OpcDataType? DataType { get; set; }
```

</div>

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

```vbnet
Public Overrides Property DataType As OpcDataType?
```

</div>

**Property value**

[Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[OpcDataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatype/)&gt;

One of the members defined by the [OpcDataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatype/) enumeration.

**Overrides**

[DataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/members#datatype)

### Value

Gets or sets the value of the data variable node. A null reference (Nothing in Visual Basic) indicates that the attribute is undefined and its default value is used.

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

```csharp
public T Value { get; set; }
```

</div>

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

```vbnet
Public Property Value As T
```

</div>

**Property value**

T

A `T` representing the value of the data variable node. This can be also a null reference (Nothing in Visual Basic).
