# OpcTypeDecodingFailedEventArgs Class

> Reference: Provides the event data for events of the delegate type OpcTypeDecodingFailedEventHandler.

<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>Members</dt>
<dd><a href="./members">OpcTypeDecodingFailedEventArgs Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides the event data for events of the delegate type [OpcTypeDecodingFailedEventHandler](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventhandler/).

## Syntax

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

```csharp
public class OpcTypeDecodingFailedEventArgs : EventArgs
```

</div>

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

```vbnet
Public Class OpcTypeDecodingFailedEventArgs
    Inherits EventArgs
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) → **OpcTypeDecodingFailedEventArgs**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></li>
</ul>

## Properties

| Name | Description |
|---|---|
| [Data](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#data) | Gets the data which is tried to decode. |
| [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#encoding) | Gets the type of encoding supported by the decoder used. |
| [Exception](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#exception) | Gets the [Exception](https://learn.microsoft.com/dotnet/api/system.exception) created or caught during the decoding process. |
| [FieldName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#fieldname) | Gets the name of the field of an [Instance](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#instance) which is about to get decoded. |
| [FieldType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#fieldtype) | Gets the type of the field being decoded. |
| [Instance](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#instance) | Gets the [object](https://learn.microsoft.com/dotnet/api/system.object) instance its data is being decoded. |
| [Message](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#message) | Gets the description of the decoding failure. |
| [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#type) | Gets the type information used to decode the data of the [Instance](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#instance). |
| [TypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#typeid) | Gets the identifier of the type being decoded. |
| [TypeIdAbsolute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#typeidabsolute) | Gets the absolute [TypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#typeid) (if available). |

## Methods

| Name | Description |
|---|---|
| [Dispose](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#dispose)<span class="api-meta">2 overloads</span> | Releases all resources used by the OpcTypeDecodingFailedEventArgs. |
| [GetData](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#getdata) | Retrieves a copy of the binary data in the [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream) used by the decoder to decode the data. |
| [GetStackTrace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#getstacktrace) | Retrieves an instance which summarizes the stack within the decoder until the failure has been produced. |
| [GetStream](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#getstream) | Retrieves a copy of the [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream) used by the decoder to decode the data. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#tostring)<span class="api-meta">override</span> | Returns a [string](https://learn.microsoft.com/dotnet/api/system.string) representing the [Message](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#message) or the [Message](https://learn.microsoft.com/dotnet/api/system.exception.message) of the [Exception](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctypedecodingfailedeventargs/members#exception) of the current OpcTypeDecodingFailedEventArgs. |

Inherits members from [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs).

## Applies to

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