# OpcEncodingStackTrace Class

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

Represents a stack trace of an encoder / decoder, which is an ordered collection of one or more stack frames.

## Syntax

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

```csharp
public class OpcEncodingStackTrace
```

</div>

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

```vbnet
Public Class OpcEncodingStackTrace
```

</div>

## Inheritance

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

## Implements

<ul class="api-implements">
<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.opcencodingstackframe/">OpcEncodingStackFrame</a>&gt;</li>
</ul>

## Properties

| Name | Description |
|---|---|
| [Empty](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#empty)<span class="api-meta">static</span> | Gets a OpcEncodingStackTrace with a [FrameCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#framecount) equals zero. |
| [FrameCount](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#framecount) | Gets the number of frames in the stack trace. |
| [IsEmpty](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#isempty) | Gets a value indicating whether the stack trace is empty. |
| [IsEnabled](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#isenabled)<span class="api-meta">static</span> | Gets or sets a value indicating whether encoders / decoders shall build a stack trace of the operations performed. |

## Methods

| Name | Description |
|---|---|
| [GetFrame](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#getframe) | Gets the specified stack frame. |
| [GetFrames](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#getframes) | Returns a copy of all stack frames in the current stack trace. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingstacktrace/members#tostring)<span class="api-meta">override</span> | Returns a readable representation of the stack trace. |

## Applies to

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