# OpcReadOnlyReferenceTypeCollection Members

> Reference: Provides a read-only collection of OpcReferenceType values.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcReadOnlyReferenceTypeCollection</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 [ReadOnlyCollection&lt;OpcReferenceType&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlycollection-1).

## Constructors

### OpcReadOnlyReferenceTypeCollection

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

| Overload | Description |
|---|---|
| [OpcReadOnlyReferenceTypeCollection(IEnumerable&lt;OpcReferenceType&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/members#opcreadonlyreferencetypecollection-system-collections-generic-ienumerable-of-opc-uafx-opcreferencetype) | Initializes a new instance of the [OpcReadOnlyReferenceTypeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/) class that is a read-only representation of the items in the `enumerable`. |
| [OpcReadOnlyReferenceTypeCollection(IList&lt;OpcReferenceType&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/members#opcreadonlyreferencetypecollection-system-collections-generic-ilist-of-opc-uafx-opcreferencetype) | Initializes a new instance of the [OpcReadOnlyReferenceTypeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/) class that is a read-only wrapper around the specified `list`. |

#### OpcReadOnlyReferenceTypeCollection(IEnumerable&lt;OpcReferenceType&gt;)

Initializes a new instance of the [OpcReadOnlyReferenceTypeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/) class that is a read-only representation of the items in the `enumerable`.

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

```csharp
public OpcReadOnlyReferenceTypeCollection(
    IEnumerable<OpcReferenceType> enumerable)
```

</div>

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

```vbnet
Public Sub New(enumerable As IEnumerable(Of OpcReferenceType))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `enumerable` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/)&gt; | The [IEnumerable&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) of [OpcReferenceType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreferencetype/) values to copy. |

**Exceptions**

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

#### OpcReadOnlyReferenceTypeCollection(IList&lt;OpcReferenceType&gt;)

Initializes a new instance of the [OpcReadOnlyReferenceTypeCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcreadonlyreferencetypecollection/) class that is a read-only wrapper around the specified `list`.

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

```csharp
public OpcReadOnlyReferenceTypeCollection(IList<OpcReferenceType> list)
```

</div>

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

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

</div>

**Parameters**

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