# OpcTypeEncodingFailedEventHandler Delegate

<span class="api-meta">since v2.8</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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Represents the method that will handle events which occur when the encoding of a specific type has failed.

## Syntax

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

```csharp
public delegate void OpcTypeEncodingFailedEventHandler(
    object sender,
    OpcTypeEncodingFailedEventArgs e)
```

</div>

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

```vbnet
Public Delegate Sub OpcTypeEncodingFailedEventHandler(
    sender As Object,
    e As OpcTypeEncodingFailedEventArgs)
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `sender` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The source of the event. |
| `e` | [OpcTypeEncodingFailedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypeencodingfailedeventargs/) | An instance of the [OpcTypeEncodingFailedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypeencodingfailedeventargs/) class containing the information used to encode a specific [Type](https://learn.microsoft.com/dotnet/api/system.type). |

## Applies to

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