# OpcAddDataItemNode 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 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 : OpcAddVariableNode
```

</div>

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

```vbnet
Public Class OpcAddDataItemNode
    Inherits OpcAddVariableNode
```

</div>

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

## Derived types

- [OpcAddAnalogItemNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddanalogitemnode/)
- [OpcAddDataItemNode&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode-1/)

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [Definition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode/members#definition) | Gets or sets a vendor-specific, human readable string that specifies how the value of the data item is calculated. |
| [ValuePrecision](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcadddataitemnode/members#valueprecision) | Gets or sets a value which specifies the maximum precision that the server can maintain for the item based on restrictions in the target environment. |

Inherits members from [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 |
