# OpcClassicInterfaceCollection Class

> Reference: Represents a collection of OpcClassicInterface instances keyed by their Identifier.

<span class="api-meta">since v2.8</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.classic">Opc.UaFx.Classic</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">OpcClassicInterfaceCollection Members</a></dd>
</dl>

Represents a collection of [OpcClassicInterface](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/) instances keyed by their [Identifier](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/members#identifier).

## Syntax

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

```csharp
public class OpcClassicInterfaceCollection : KeyedCollection<Guid, OpcClassicInterface>
```

</div>

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

```vbnet
Public Class OpcClassicInterfaceCollection
    Inherits KeyedCollection(Of Guid, OpcClassicInterface)
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [Collection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1)&lt;[OpcClassicInterface](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/)&gt; → [KeyedCollection](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2)&lt;[Guid](https://learn.microsoft.com/dotnet/api/system.guid), [OpcClassicInterface](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/)&gt; → **OpcClassicInterfaceCollection**

## 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;<a href="../opc.uafx.classic.opcclassicinterface/">OpcClassicInterface</a>&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;<a href="../opc.uafx.classic.opcclassicinterface/">OpcClassicInterface</a>&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;<a href="../opc.uafx.classic.opcclassicinterface/">OpcClassicInterface</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a href="../opc.uafx.classic.opcclassicinterface/">OpcClassicInterface</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a href="../opc.uafx.classic.opcclassicinterface/">OpcClassicInterface</a>&gt;</li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcClassicInterfaceCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterfacecollection/members#opcclassicinterfacecollection) | Initializes a new instance of the OpcClassicInterfaceCollection class. |

## Methods

| Name | Description |
|---|---|
| [GetKeyForItem](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterfacecollection/members#getkeyforitem)<span class="api-meta">protected · override</span> | Extracts the key from the `item` specified. |

Inherits members from [KeyedCollection&lt;Guid, OpcClassicInterface&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2), [Collection&lt;OpcClassicInterface&gt;](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1).

## Applies to

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