# OpcAddNodeCollection Class

> Reference: Defines a collection for OpcAddNode instances.

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

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcAddNodeCollection Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines a collection for [OpcAddNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnode/) instances.

## Syntax

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

```csharp
public class OpcAddNodeCollection : Collection<OpcAddNode>
```

</div>

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

```vbnet
Public Class OpcAddNodeCollection
    Inherits Collection(Of OpcAddNode)
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [Collection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1)&lt;[OpcAddNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnode/)&gt; → **OpcAddNodeCollection**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a href="../opc.uafx.opcaddnode/">OpcAddNode</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a href="../opc.uafx.opcaddnode/">OpcAddNode</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a href="../opc.uafx.opcaddnode/">OpcAddNode</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a href="../opc.uafx.opcaddnode/">OpcAddNode</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a href="../opc.uafx.opcaddnode/">OpcAddNode</a>&gt;</li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcAddNodeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnodecollection/members#opcaddnodecollection) | Initializes a new instance of the OpcAddNodeCollection class. |

## Methods

| Name | Description |
|---|---|
| [InsertItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnodecollection/members#insertitem)<span class="api-meta">protected · override · since v2.9</span> | Inserts the `item` into the collection at the `index` specified. |
| [SetItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnodecollection/members#setitem)<span class="api-meta">protected · override · since v2.9</span> | Replaces the command at the `index` specified with the `item`. |

Inherits members from [Collection&lt;OpcAddNode&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1).

## Applies to

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