# OpcNamespaceIndexCollection Members

> Reference: Represents a collection of int values identifying different namespaces using their Index (see OpcNamespace).

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcNamespaceIndexCollection</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
</dl>

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

## Constructors

### OpcNamespaceIndexCollection

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

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

#### OpcNamespaceIndexCollection()

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

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

```csharp
public OpcNamespaceIndexCollection()
```

</div>

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

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

</div>

#### OpcNamespaceIndexCollection(IList&lt;int&gt;)

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

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

```csharp
public OpcNamespaceIndexCollection(IList<int> list)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `list` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[Int32](https://learn.microsoft.com/dotnet/api/system.int32)&gt; | The [IList&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) of [int](https://learn.microsoft.com/dotnet/api/system.int32) values to wrap. |

**Exceptions**

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