# OpcValueCollection Members

> Reference: Represents a collection of OpcValue instances.

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

## Constructors

### OpcValueCollection

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

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

#### OpcValueCollection()

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

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

```csharp
public OpcValueCollection()
```

</div>

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

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

</div>

#### OpcValueCollection(IList&lt;OpcValue&gt;)

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

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

```csharp
public OpcValueCollection(IList<OpcValue> list)
```

</div>

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

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

</div>

**Parameters**

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