Skip to content

Reference

OpcEncodingStackTrace Members

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

Reference

OpcEncodingStackTrace Members ​

Type
OpcEncodingStackTrace
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Properties ​

Empty ​

static

Gets a OpcEncodingStackTrace with a FrameCount equals zero.

csharp
public static OpcEncodingStackTrace Empty { get; }
vbnet
Public Shared ReadOnly Property Empty As OpcEncodingStackTrace

Property value

OpcEncodingStackTrace

An instance of the OpcEncodingStackTrace without any stack frames.

FrameCount ​

Gets the number of frames in the stack trace.

csharp
public int FrameCount { get; }
vbnet
Public ReadOnly Property FrameCount As Integer

Property value

Int32

The number of frames in the stack trace.

IsEmpty ​

Gets a value indicating whether the stack trace is empty.

csharp
public bool IsEmpty { get; }
vbnet
Public ReadOnly Property IsEmpty As Boolean

Property value

Boolean

The value true if FrameCount is equals zero; otherwise the value false.

IsEnabled ​

static

Gets or sets a value indicating whether encoders / decoders shall build a stack trace of the operations performed. The default value is false. In case there tracing of the encode / decode operations is enabled the overall performance of the encoders / decoders used slows down.

csharp
public static bool IsEnabled { get; set; }
vbnet
Public Shared Property IsEnabled As Boolean

Property value

Boolean

The value true if encoders / decoders shall build a stack trace; otherwise the value false.

Methods ​

GetFrame ​

Gets the specified stack frame.

csharp
public OpcEncodingStackFrame GetFrame(int index)
vbnet
Public Function GetFrame(index As Integer) As OpcEncodingStackFrame

Parameters

NameTypeDescription
indexInt32The index of the stack frame requested.

Returns

OpcEncodingStackFrame

The specified stack frame as an instance of the OpcEncodingStackFrame class or a null reference (Nothing in Visual Basic) in case there index is outside of the bounds of the frames in the current OpcEncodingStackTrace.

GetFrames ​

Returns a copy of all stack frames in the current stack trace.

csharp
public OpcEncodingStackFrame[] GetFrames()
vbnet
Public Function GetFrames() As OpcEncodingStackFrame()

Returns

OpcEncodingStackFrame[]

An array of the type OpcEncodingStackFrame representing the encoding / decoding operations in the stack trace.

ToString ​

override

Returns a readable representation of the stack trace.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string representing the information of the current OpcEncodingStackTrace in a readable way.

Overrides

ToString()