# OpcReferenceCollection Members

> Reference: Representes a collection of OpcReference instances.

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

## Constructors

### OpcReferenceCollection

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

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

#### OpcReferenceCollection()

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

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

```csharp
public OpcReferenceCollection()
```

</div>

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

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

</div>

#### OpcReferenceCollection(IList&lt;OpcReference&gt;)

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

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

```csharp
public OpcReferenceCollection(IList<OpcReference> list)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `list` | [IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)&lt;[OpcReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreference/)&gt; | The [IList&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) of [OpcReference](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreference/) 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). |
