Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcTypeEncodingFailedEventArgs type exposes the following members.
Gets the type of encoding supported by the encoder 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 encoding 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 encoding failed are in advance determined and reported.
Gets the description of the encoding failure.
C#
public string Message { get; }
Property Value
The description of the encoding failure or a null reference (Nothing in Visual Basic) in the case there the encoding failure indicates an exception which was handled using a generic exception handler.
Gets the identifier of the type being encoded.
C#
public OpcNodeId TypeId { get; }
Property Value
An instance of the OpcNodeId class which identifies the type being encoded or a null reference (Nothing in Visual Basic) if the encoding failed in a context there a type identifier does not apply to the encoding operation performed.
Releases the unmanaged resources used by the OpcTypeEncodingFailedEventArgs 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 encoder to encode the data.
C#
public byte[] GetData()
Returns
Byte[]
An array of Byte values with the data the encoder uses for encoding.
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 encoder 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 encode 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 encoder to encode the data.
C#
public Stream GetStream()
Returns
An instance of the Stream which represents a copy of the Stream used by the encoder to encode 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 OpcTypeEncodingFailedEventArgs.