Skip to content

Reference

OpcTypeDecodingFailedEventArgs Members

Provides the event data for events of the delegate type OpcTypeDecodingFailedEventHandler.

Reference

OpcTypeDecodingFailedEventArgs Members ​

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

Inherits members from EventArgs.

Properties ​

Data ​

Gets the data which is tried to decode.

csharp
public object Data { get; }
vbnet
Public ReadOnly Property Data As Object

Property value

Object

An object instance which depends on the decoder used.

Encoding ​

Gets the type of encoding supported by the decoder used.

csharp
public OpcEncodingType Encoding { get; }
vbnet
Public ReadOnly Property Encoding As OpcEncodingType

Property value

OpcEncodingType

One of the members defined by the OpcEncodingType enumeration.

Exception ​

Gets the Exception created or caught during the decoding process.

csharp
public Exception Exception { get; }
vbnet
Public ReadOnly Property Exception As Exception

Property value

Exception

An instance of the Exception class or a null reference (Nothing in Visual Basic) in case there the conditions under which the decoding failed are in advance determined and reported.

FieldName ​

Gets the name of the field of an Instance which is about to get decoded.

csharp
public string FieldName { get; }
vbnet
Public ReadOnly Property FieldName As String

Property value

String

The name of the field to decode or a null reference (Nothing in Visual Basic) if there is no field name known by the decoder for the current decode failure.

FieldType ​

Gets the type of the field being decoded.

csharp
public Type FieldType { get; }
vbnet
Public ReadOnly Property FieldType As Type

Property value

Type

The Type of the field to decode or a null reference (Nothing in Visual Basic) if there is no Type known by the decoder for the current decode failure.

Instance ​

Gets the object instance its data is being decoded.

csharp
public object Instance { get; }
vbnet
Public ReadOnly Property Instance As Object

Property value

Object

An object instance or a null reference (Nothing in Visual Basic) in case there the decoder is not about to decode an instance.

Message ​

Gets the description of the decoding failure.

csharp
public string Message { get; }
vbnet
Public ReadOnly Property Message As String

Property value

String

The description of the decoding failure or a null reference (Nothing in Visual Basic) in the case there the decoding failure indicates an exception which was handled using a generic exception handler.

Type ​

Gets the type information used to decode the data of the Instance.

csharp
public Type Type { get; }
vbnet
Public ReadOnly Property Type As Type

Property value

Type

The Type of the Instance being decoded or a null reference (Nothing in Visual Basic) if the decoding failure occured in a context where an instance type is either not used or unknown.

TypeId ​

Gets the identifier of the type being decoded.

csharp
public OpcNodeId TypeId { get; }
vbnet
Public ReadOnly Property TypeId As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId class which identifies the type being decoded or a null reference (Nothing in Visual Basic) if the decoding failed in a context there a type identifier does not apply to the decoding operation performed.

TypeIdAbsolute ​

Gets the absolute TypeId (if available).

csharp
public OpcNodeId TypeIdAbsolute { get; }
vbnet
Public ReadOnly Property TypeIdAbsolute As OpcNodeId

Property value

OpcNodeId

The absolute TypeId in case there the TypeId has been resolved or a null reference (Nothing in Visual Basic) if the TypeId hasn't been resolved.

Methods ​

Dispose ​

2 overloads

OverloadDescription
Dispose()Releases all resources used by the OpcTypeDecodingFailedEventArgs.
Dispose(bool)protected · virtualReleases the unmanaged resources used by the OpcTypeDecodingFailedEventArgs and optionally releases the managed resources.

Dispose() ​

Releases all resources used by the OpcTypeDecodingFailedEventArgs.

csharp
public void Dispose()
vbnet
Public Sub Dispose()

Implements

Dispose()

Dispose(bool) ​

protected · virtual

Releases the unmanaged resources used by the OpcTypeDecodingFailedEventArgs and optionally releases the managed resources.

csharp
protected virtual void Dispose(bool disposing)
vbnet
Protected Overridable Sub Dispose(disposing As Boolean)

Parameters

NameTypeDescription
disposingBooleanThe value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.

GetData ​

Retrieves a copy of the binary data in the Stream used by the decoder to decode the data.

csharp
public byte[] GetData()
vbnet
Public Function GetData() As Byte()

Returns

Byte[]

An array of byte values with the data the decoder uses for decoding.

Remarks

In case there GetStream is used as well and the Stream instance is modified, the array offered by GetData is modified as well.

GetStackTrace ​

Retrieves an instance which summarizes the stack within the decoder until the failure has been produced. The OpcEncodingStackTrace returned contains OpcEncodingStackFrame entries only in case there IsEnabled is equals true (this influences the overall performance while encoding / decoding).

csharp
public OpcEncodingStackTrace GetStackTrace()
vbnet
Public Function GetStackTrace() As OpcEncodingStackTrace

Returns

OpcEncodingStackTrace

An instance of the OpcEncodingStackTrace class which summarizes the stack within the decode until the failure has been produced. The instance returned provides an empty stack trace if IsEnabled is equals false (the default value).

GetStream ​

Retrieves a copy of the Stream used by the decoder to decode the data.

csharp
public Stream GetStream()
vbnet
Public Function GetStream() As Stream

Returns

Stream

An instance of the Stream which represents a copy of the Stream used by the decoder to decode the data.

Remarks

The Stream provided allows reading, writing and seeking; but modifying or disposing the instance will influcence the instance provided by subsequent calls to GetStream of the current OpcTypeDecodingFailedEventArgs.

ToString ​

override

Returns a string representing the Message or the Message of the Exception of the current OpcTypeDecodingFailedEventArgs.

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

Returns

String

A string representing the Message or the Message of the Exception of the current OpcTypeDecodingFailedEventArgs.

Overrides

ToString()