# OpcResultCollection&lt;TItem, TItemContent, TItemContentList&gt; Class

> Reference: Provides an abstract generic specialisation of the OpcCollection<TItem, TItemContent, TItemContentList> which further restricts the type parameters to define a base for OpcResult types.

<span class="api-meta">abstract · since v2.7</span>

<dl class="api-definition">
<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>Members</dt>
<dd><a href="./members">OpcResultCollection&lt;TItem, TItemContent, TItemContentList&gt; Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides an abstract generic specialisation of the [OpcCollection&lt;TItem, TItemContent, TItemContentList&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccollection-3/) which further restricts the type parameters to define a base for [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) types.

## Syntax

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

```csharp
public abstract class OpcResultCollection<TItem, TItemContent, TItemContentList> : OpcCollection<TItem, TItemContent, TItemContentList>
    where TItem : OpcResult, IOpcContainer<TItemContent>
    where TItemContentList : class, IList<TItemContent>, new()
```

</div>

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

```vbnet
Public MustInherit Class OpcResultCollection(Of TItem As {OpcResult, IOpcContainer(Of TItemContent)}, TItemContent, TItemContentList As {Class, IList(Of TItemContent), New})
    Inherits OpcCollection(Of TItem, TItemContent, TItemContentList)
```

</div>

## Type parameters

| Name | Description |
|---|---|
| `TItem` | The type of items in the collection which is a subclass of the [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) and implements the `IOpcContainer` to interface to maintain an instance of the type defined by `TItemContent`. |
| `TItemContent` | The type of content maintained by the type defined by `TItem`. |
| `TItemContentList` | The type of `TItemContentList` to maintained and represented by the collection. |

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [Collection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1)&lt;TItem&gt; → [OpcCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccollection-3/)&lt;TItem, TItemContent, TItemContentList&gt; → **OpcResultCollection&lt;TItem, TItemContent, TItemContentList&gt;**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItem&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TItem&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TItem&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;TItem&gt;</li>
</ul>

## Derived types

- [OpcAddNodeResultCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnoderesultcollection/)
- [OpcResultCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresultcollection/)
- [OpcTranslatePathResultCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepathresultcollection/)

## Constructors

| Name | Description |
|---|---|
| [OpcResultCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresultcollection-3/members#opcresultcollection)<span class="api-meta">protected · 2 overloads</span> | Initializes a new instance of the OpcResultCollection&lt;TItem, TItemContent, TItemContentList&gt; class. |

Inherits members from [OpcCollection&lt;TItem, TItemContent, TItemContentList&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccollection-3/members), [Collection&lt;TItem&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.7–v2.59 |
