# OpcAddDataItemNode&lt;T&gt; Class

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

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

<dl class="api-definition">
<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>Members</dt>
<dd><a href="./members">OpcAddDataItemNode&lt;T&gt; Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines a single command of the [IOpcAddNodesService](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcaddnodesservice/) used to add one data item node.

## Syntax

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

```csharp
public class OpcAddDataItemNode<T> : OpcAddDataItemNode
```

</div>

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

```vbnet
Public Class OpcAddDataItemNode(Of T)
    Inherits OpcAddDataItemNode
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `T` | The type of data (see [DataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/members#datatype)) to represent. |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicecommand/) → [OpcNodeServiceCommand](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcnodeservicecommand/) → [OpcAddNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnode/) → [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/) → [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/) → [OpcAddDataItemNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode/) → **OpcAddDataItemNode&lt;T&gt;**

## Constructors

| Name | Description |
|---|---|
| [OpcAddDataItemNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#opcadddataitemnode)<span class="api-meta">20 overloads</span> | Initializes a new instance of the OpcAddDataItemNode&lt;T&gt; class using the `name` of the data item node to add. |

## Properties

| Name | Description |
|---|---|
| [DataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#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. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/members#value) | Gets or sets the value of the data variable node. |

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

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.7–v2.59 |
