Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcTypeDecodingFailedEventArgs type exposes the following members.
Gets the type of encoding supported by the decoder used.
C#
public OpcEncodingType Encoding { get; }
Property Value
One of the members defined by the OpcEncodingType enumeration.
Gets the Exception created or caught during the decoding process.
C#
public Exception Exception { get; }
Property Value
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.
Gets the description of the decoding failure.
C#
public string Message { get; }
Property Value
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.
Gets the identifier of the type being decoded.
C#
public OpcNodeId TypeId { get; }
Property Value
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.
Releases the unmanaged resources used by the OpcTypeDecodingFailedEventArgs and optionally releases the managed resources.
C#
protected virtual void Dispose(bool disposing)
Parameters
disposing
Boolean
The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.
Retrieves a copy of the binary data in the Stream used by the decoder to decode the data.
C#
public byte[] GetData()
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.
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).
C#
public OpcEncodingStackTrace GetStackTrace()
Returns
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).
Retrieves a copy of the Stream used by the decoder to decode the data.
C#
public Stream GetStream()
Returns
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.