# OpcClient.GetTypes Method

> Reference: Retrieves all IOpcType objects offered by the IOpcTypeProviders supported.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClient</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</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">OpcClient Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

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

Retrieves all [IOpcType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctype/) objects offered by the [IOpcTypeProvider](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctypeprovider/)s supported.

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

```csharp
public IOpcType[] GetTypes()
```

</div>

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

```vbnet
Public Function GetTypes() As IOpcType()
```

</div>

**Returns**

[IOpcType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctype/)[]

An array that contains all [IOpcType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctype/) objects that are offered by all [IOpcTypeProvider](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopctypeprovider/)s supported.

**Exceptions**

| Exception | Condition |
|---|---|
| [ObjectDisposedException](https://learn.microsoft.com/dotnet/api/system.objectdisposedexception) | The object has been disposed of. |
| [OpcException](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcexception/) | The service execution failed upon different circumstances; for more details see exception details. |
