# OpcClassicInterfaceCollection Members

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

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClassicInterfaceCollection</a></dd>
<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>
</dl>

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).

## Constructors

### OpcClassicInterfaceCollection

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

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

```csharp
public OpcClassicInterfaceCollection()
```

</div>

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

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

</div>

## Methods

### GetKeyForItem

<span class="api-meta">protected · override</span>

Extracts the key from the `item` specified.

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

```csharp
protected override Guid GetKeyForItem(OpcClassicInterface item)
```

</div>

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

```vbnet
Protected Overrides Function GetKeyForItem(item As OpcClassicInterface) As Guid
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `item` | [OpcClassicInterface](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/) | The [OpcClassicInterface](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/) whose key is to be extracted. |

**Returns**

[Guid](https://learn.microsoft.com/dotnet/api/system.guid)

The [Identifier](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.classic.opcclassicinterface/members#identifier) of the `item`.

**Exceptions**

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

**Overrides**

[GetKeyForItem(OpcClassicInterface)](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2.getkeyforitem)
