# OpcNameCollection Members

> Reference: Representes a collection of OpcName instances.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNameCollection</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 [OpcCollection&lt;OpcName, QualifiedName, QualifiedNameCollection&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccollection-3/members), [Collection&lt;OpcName&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1).

## Constructors

### OpcNameCollection

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

| Overload | Description |
|---|---|
| [OpcNameCollection()](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/members#opcnamecollection-noparams) | Initializes a new instance of the [OpcNameCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/) class. |
| [OpcNameCollection(IList&lt;OpcName&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/members#opcnamecollection-system-collections-generic-ilist-of-opc-uafx-opcname) | Initializes a new instance of the [OpcNameCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/) class as a wrapper for the specified `list`. |

#### OpcNameCollection()

Initializes a new instance of the [OpcNameCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/) class.

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

```csharp
public OpcNameCollection()
```

</div>

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

```vbnet
Public Sub New()
```

</div>

#### OpcNameCollection(IList&lt;OpcName&gt;)

Initializes a new instance of the [OpcNameCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamecollection/) class as a wrapper for the specified `list`.

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

```csharp
public OpcNameCollection(IList<OpcName> list)
```

</div>

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

```vbnet
Public Sub New(list As IList(Of OpcName))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `list` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)&gt; | The [IList&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) of [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) instances to wrap. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `list` is a null reference (Nothing in Visual Basic). |
