# OpcAddObjectNode Members

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

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcAddObjectNode</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 [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

### OpcAddObjectNode

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

| Overload | Description |
|---|---|
| [OpcAddObjectNode(OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcname) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add. |
| [OpcAddObjectNode(OpcName, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcaddinstancenode-array) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add. |
| [OpcAddObjectNode(OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype-opc-uafx-opcaddinstancenode-array) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array) | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object node to add, which shall be additionally accessible by the `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcobjecttype-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcreferencetype-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/members#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |
| [OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])](#opcaddobjectnode-opc-uafx-opcnodeid-opc-uafx-opcname-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcnodeid-opc-uafx-opcaddinstancenode-array)<span class="api-meta">protected</span> | Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object node to add, which shall be accessible by the `name` and `nodeId` defined. |

#### OpcAddObjectNode(OpcName)

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(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 object 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). |

#### OpcAddObjectNode(OpcName, params OpcAddInstanceNode\[\])

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(OpcName name, params OpcAddInstanceNode[] children)
```

</div>

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

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

</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 object node can be accessed. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId)

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(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 object 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId, params OpcAddInstanceNode\[\])

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

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

</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 object 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 [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId)

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(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 object 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

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

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

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

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    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 object 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    params OpcAddInstanceNode[] children)
```

</div>

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

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

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

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

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId)

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    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 object 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). |

#### OpcAddObjectNode(OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the `name` of the object 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 OpcAddObjectNode(
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

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

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

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

#### OpcAddObjectNode(OpcObjectType, OpcName)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(OpcObjectType type, OpcName name)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcObjectType,
    name As OpcName,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object node can be accessed. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(OpcObjectType type, OpcName name, OpcNodeId nodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcObjectType,
    name As OpcName,
    nodeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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 [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcObjectType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcObjectType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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`. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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). |

#### OpcAddObjectNode(OpcObjectType, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `type` of object 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 OpcAddObjectNode(
    OpcObjectType type,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    type As OpcObjectType,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) | One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) 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 object 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`. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

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

#### OpcAddObjectNode(OpcNodeId, OpcName)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(OpcNodeId typeDefinitionId, OpcName name)
```

</div>

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

```vbnet
Protected Sub New(typeDefinitionId As OpcNodeId, name As OpcName)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object node can be accessed. |

**Exceptions**

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

#### OpcAddObjectNode(OpcNodeId, OpcName, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object node can be accessed. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

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

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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 `typeDefinitionId` 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 `typeDefinitionId`, `name` or `nodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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 [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

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

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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 `typeDefinitionId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `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 `typeDefinitionId`, `name`, `nodeId` or `parentNodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

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

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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 `typeDefinitionId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `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 `typeDefinitionId`, `name`, `nodeId` or `parentNodeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcReferenceType, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcReferenceType referenceType,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceType As OpcReferenceType,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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`. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

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

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId)

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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 `typeDefinitionId` is equals [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) or `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 `typeDefinitionId`, `name`, `nodeId`, `parentNodeId` or `referenceTypeId` is a null reference (Nothing in Visual Basic). |

#### OpcAddObjectNode(OpcNodeId, OpcName, OpcNodeId, OpcNodeId, OpcNodeId, params OpcAddInstanceNode\[\])

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

Initializes a new instance of the [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) class using the specified `typeDefinitionId` of object 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 OpcAddObjectNode(
    OpcNodeId typeDefinitionId,
    OpcName name,
    OpcNodeId nodeId,
    OpcNodeId parentNodeId,
    OpcNodeId referenceTypeId,
    params OpcAddInstanceNode[] children)
```

</div>

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

```vbnet
Protected Sub New(
    typeDefinitionId As OpcNodeId,
    name As OpcName,
    nodeId As OpcNodeId,
    parentNodeId As OpcNodeId,
    referenceTypeId As OpcNodeId,
    ParamArray children As OpcAddInstanceNode())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 object to use for the new node. |
| `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 object 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`. |
| `children` | params [OpcAddInstanceNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/)[] | The initial child nodes of the node to add. |

**Exceptions**

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

## Properties

### Type

Gets value indicating the predefined underlying type definition the new node will represent an instance of.

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

```csharp
public OpcObjectType Type { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Type As OpcObjectType
```

</div>

**Property value**

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

One of the members defined by the [OpcObjectType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttype/) enumeration or -1 in case of a custom type definition is used (see [TypeDefinitionId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddinstancenode/members#typedefinitionid)).

## Methods

### OfType

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

Retrieves an instance which represents the definition of an object type that can be used to define [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) command instances using the type of object node represented by the [OpcAddObjectNode.TypeDefinition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode.typedefinition/) instance provided.

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

```csharp
public static OpcAddObjectNode.TypeDefinition OfType(OpcNodeId typeDefinitionId)
```

</div>

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

```vbnet
Public Shared Function OfType(
    typeDefinitionId As OpcNodeId) As OpcAddObjectNode.TypeDefinition
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeDefinitionId` | [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 type definition to provide. |

**Returns**

[OpcAddObjectNode.TypeDefinition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode.typedefinition/)

A new instance of the [OpcAddObjectNode.TypeDefinition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode.typedefinition/) class which can be used to define typed [OpcAddObjectNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddobjectnode/) command instances.

**Exceptions**

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