# OpcAddVariableTypeNode Members

> Reference: Defines a single command of the IOpcAddNodesService used to add one variable type node (nodes of the category VariableType).

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcAddVariableTypeNode</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 [OpcAddTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddtypenode/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

### OpcAddVariableTypeNode

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

| Overload | Description |
|---|---|
| [OpcAddVariableTypeNode(OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcname) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add. |
| [OpcAddVariableTypeNode(OpcName, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcname-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add. |
| [OpcAddVariableTypeNode(OpcName, object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcname-system-object) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add. |
| [OpcAddVariableTypeNode(OpcName, object, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcname-system-object-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add. |
| [OpcAddVariableTypeNode(OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcname-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcName, OpcNodeId, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcName, OpcNodeId, object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcname-opc-uafx-opcnodeid-system-object) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcname-opc-uafx-opcnodeid-system-object-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-system-object) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcvariabletype-opc-uafx-opcname-opc-uafx-opcnodeid-system-object-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#opcaddvariabletypenode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-system-object) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])](#opcaddvariabletypenode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-system-object-opc-uafx-opcaddvariablenode-array) | Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. |

#### OpcAddVariableTypeNode(OpcName)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type 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 <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(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 variable type 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). |

#### OpcAddVariableTypeNode(OpcName, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type 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 <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcName name,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(name As OpcName, ParamArray children As OpcAddVariableNode())
```

</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 variable type node can be accessed. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddVariableTypeNode(OpcName, object)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type 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 <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(OpcName name, object value)
```

</div>

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

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

</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 variable type node can be accessed. |
| `value` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |

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

#### OpcAddVariableTypeNode(OpcName, object, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type 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 <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcName name,
    object value,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    value As Object,
    ParamArray children As OpcAddVariableNode())
```

</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 variable type node can be accessed. |
| `value` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddVariableTypeNode(OpcName, OpcNodeId)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(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 variable type 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). |

#### OpcAddVariableTypeNode(OpcName, OpcNodeId, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddVariableNode[] children)
```

</div>

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

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

</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 variable type 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. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddVariableTypeNode(OpcName, OpcNodeId, object)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(OpcName name, OpcNodeId nodeId, object value)
```

</div>

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

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

</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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |

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

#### OpcAddVariableTypeNode(OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.VariableTypeIds.BaseVariableType">BaseVariableType</abbr> node using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcName name,
    OpcNodeId nodeId,
    object value,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object,
    ParamArray children As OpcAddVariableNode())
```

</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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type 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 the `superType` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcVariableType superType,
    OpcName name,
    OpcNodeId nodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superType` | [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 super type node the new node will represent a subtype of. The super type node is referenced using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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`, `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type 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 the `superType` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcVariableType superType,
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    superType As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    ParamArray children As OpcAddVariableNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superType` | [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 super type node the new node will represent a subtype of. The super type node is referenced using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

**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`, `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `superTypeId` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcNodeId superTypeId,
    OpcName name,
    OpcNodeId nodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superTypeId` | [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 super type node to reference using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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 `superTypeId` 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 `superTypeId`, `name` or `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `superTypeId` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcNodeId superTypeId,
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    superTypeId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    ParamArray children As OpcAddVariableNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superTypeId` | [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 super type node to reference using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `superTypeId` 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 `superTypeId`, `name` or `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, object)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type 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 the `superType` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcVariableType superType,
    OpcName name,
    OpcNodeId nodeId,
    object value)
```

</div>

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

```vbnet
Public Sub New(
    superType As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superType` | [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 super type node the new node will represent a subtype of. The super type node is referenced using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |

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

#### OpcAddVariableTypeNode(OpcVariableType, OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the specified `superType` to inherit from by the variable type 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 the `superType` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcVariableType superType,
    OpcName name,
    OpcNodeId nodeId,
    object value,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    superType As OpcVariableType,
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object,
    ParamArray children As OpcAddVariableNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superType` | [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 super type node the new node will represent a subtype of. The super type node is referenced using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, object)

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `superTypeId` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcNodeId superTypeId,
    OpcName name,
    OpcNodeId nodeId,
    object value)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superTypeId` | [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 super type node to reference using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `superTypeId` 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 `superTypeId`, `name` or `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddVariableTypeNode(OpcNodeId, OpcName, OpcNodeId, object, params OpcAddVariableNode\[\])

Initializes a new instance of the [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) class using the `name` of the variable type node to add, which shall be additionally accessible by the `nodeId` defined. The new node will be a child of the node identified by `superTypeId` using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference.

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

```csharp
public OpcAddVariableTypeNode(
    OpcNodeId superTypeId,
    OpcName name,
    OpcNodeId nodeId,
    object value,
    params OpcAddVariableNode[] children)
```

</div>

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

```vbnet
Public Sub New(
    superTypeId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    value As Object,
    ParamArray children As OpcAddVariableNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `superTypeId` | [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 super type node to reference using [HasSubtype](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/#hassubtype) as the type of reference. |
| `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 variable type 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` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The initial value of new variable node instances created from the type of variable node to add. |
| `children` | params [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `superTypeId` 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 `superTypeId`, `name` or `nodeId` is a null reference (Nothing in Visual Basic). |

## Properties

### ArrayDimensions

Gets the number/lengths of dimensions for an array [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#value) with one or more fixed dimensions.

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

```csharp
public OpcArrayDimensions ArrayDimensions { get; set; }
```

</div>

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

```vbnet
Public Property ArrayDimensions As OpcArrayDimensions
```

</div>

**Property value**

[OpcArrayDimensions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/)

An instance of the [OpcArrayDimensions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/) class which offers the number/lengths of dimensions for an array [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#value).

**Remarks**

If the [ValueRank](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#valuerank) does not identify an array of a specific dimension (i.e. [ValueRank](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#valuerank) &lt;= 0) [ArrayDimensions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#arraydimensions) can be a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.

### Children

Gets a collection of [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/) instances which define the sub-ordinated nodes to add as children to the node to add.

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

```csharp
public OpcAddNodeCollection Children { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Children As OpcAddNodeCollection
```

</div>

**Property value**

[OpcAddNodeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnodecollection/)

An instance of the [OpcAddNodeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnodecollection/) class with the [OpcAddVariableNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariablenode/) instances to process after the node defined by this [OpcAddVariableTypeNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/) has been added.

### DataType

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.opcaddvariabletypenode/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 OpcDataType? DataType { get; set; }
```

</div>

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

```vbnet
Public 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.

### DataTypeId

Gets or stets the identifier which identifies the node that defines the type of data represented by the variable type 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 OpcNodeId DataTypeId { get; set; }
```

</div>

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

```vbnet
Public Property DataTypeId As OpcNodeId
```

</div>

**Property value**

[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 data type node which defines the type of data represented by the variable node. These data type node defines either a simple or a complex type of data accessible by the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddvariabletypenode/members#value) property.

### IsAbstract

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

Gets or sets a value indicating whether the variable type node to add is abstract and must be overridden.

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

```csharp
public override bool IsAbstract { get; set; }
```

</div>

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

```vbnet
Public Overrides Property IsAbstract As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the variable type node to add is abstract; otherwise the value false (the default value).

**Overrides**

[IsAbstract](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddtypenode/members#isabstract)

### SuperType

Gets a value indicating the predefined underlying super type the new node will represent a subtype of.

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

```csharp
public OpcVariableType SuperType { get; }
```

</div>

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

```vbnet
Public ReadOnly Property SuperType As OpcVariableType
```

</div>

**Property value**

[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 or -1 in case of a custom type definition is used (see [SuperTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddtypenode/members#supertypeid)).

### Value

Gets or sets the value of the variable type node which may be simple or complex. 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 object Value { get; set; }
```

</div>

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

```vbnet
Public Property Value As Object
```

</div>

**Property value**

[Object](https://learn.microsoft.com/dotnet/api/system.object)

A [object](https://learn.microsoft.com/dotnet/api/system.object) representing the value of the variable type node.

### ValueRank

Gets or sets a value which indicates whether the value attribute of the variable is an array and how many dimensions the array has.

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

```csharp
public int? ValueRank { get; set; }
```

</div>

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

```vbnet
Public Property ValueRank As Integer?
```

</div>

**Property value**

[Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[Int32](https://learn.microsoft.com/dotnet/api/system.int32)&gt;

One of the values defined by the <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.ValueRanks">ValueRanks</abbr> class or a null reference (Nothing in Visual Basic). In case of a null reference (Nothing in Visual Basic) the server defined default value of the attribute is used.
