Reference
OpcRawObject Members
Represents the value of a structured data type which could not be decoded, as its sender encoded it.
Reference
OpcRawObject Members
- Type
- OpcRawObject
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Properties
Encoding
Gets the encoding in which the value is encoded.
public OpcEncoding Encoding { get; }Public ReadOnly Property Encoding As OpcEncodingProperty value
An instance of the OpcEncoding class whose Id identifies the encoding of the data type and whose Type states whether the RawData is binary or XML encoded.
RawData
Gets the encoded value.
public object RawData { get; }Public ReadOnly Property RawData As ObjectProperty value
An array of byte values if the Encoding is Binary; or an XmlElement if it is Xml.
Methods
Decode
Decodes the RawData as the T defined.
public T Decode<T>(OpcContext context) where T : new()Public Function Decode(Of T As New)(context As OpcContext) As TType parameters
| Name | Description |
|---|---|
T | The type to decode with a default constructor. |
Parameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext to use to decode the RawData. |
Returns
T
A new instance of the type defined by T and decoded with the information in the RawData.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
| OpcException | The decoding has failed. For more details exception data. |
Remarks
This method is equivalent to Decode.
GetTypeInfo
Gets the OpcDataTypeInfo of the data type of the value represented.
public OpcDataTypeInfo GetTypeInfo()Public Function GetTypeInfo() As OpcDataTypeInfoReturns
An OpcDataTypeInfo whose IsUnknown is true and which provides the Encoding and, of an XML encoded value, the name of the data type. As an encoded value does not state its data type, the TypeId is Null.
Remarks
A client that knows the data type provides it by its GetDataType method with the Encoding of the value.
ToString
Returns a string representing the Encoding of the current OpcRawObject.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string representing the current OpcRawObject.
Overrides

