Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcDataTypeEncodingAttribute type exposes the following members.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(byte[] id)
Parameters
id
Byte[]
The opaque value of the data type encoding node.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceIndex
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(byte[] id, int namespaceIndex)
Parameters
id
Byte[]
The opaque value of the data type encoding node.
namespaceIndex
Int32
The index of the namespace to that the data type encoding node belongs.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceUri
specified to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(byte[] id, string namespaceUri)
Parameters
id
Byte[]
The opaque value of the data type encoding node.
namespaceUri
String
The namespace URI that the Id should refer to.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(int id)
Parameters
id
Int32
The numeric identifier of the data type encoding node.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceIndex
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(int id, int namespaceIndex)
Parameters
id
Int32
The numeric identifier of the data type encoding node.
namespaceIndex
Int32
The index of the namespace to that the data type encoding node belongs.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceUri
specified to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(int id, string namespaceUri)
Parameters
id
Int32
The numeric identifier of the data type encoding node.
namespaceUri
String
The namespace URI that the Id should refer to.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(string id)
Parameters
id
String
The textual identifier of the data type encoding node.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceIndex
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(string id, int namespaceIndex)
Parameters
id
String
The textual identifier of the data type encoding node.
namespaceIndex
Int32
The index of the namespace to that the data type encoding node belongs.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceUri
specified to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(string id, string namespaceUri)
Parameters
id
String
The textual identifier of the data type encoding node.
namespaceUri
String
The namespace URI that the Id should refer to.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(uint id)
Parameters
id
UInt32
The numeric identifier of the data type encoding node.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceIndex
to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(uint id, int namespaceIndex)
Parameters
id
UInt32
The numeric identifier of the data type encoding node.
namespaceIndex
Int32
The index of the namespace to that the data type encoding node belongs.
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id
and namespaceUri
specified to use to identify the according data type encoding node.
C#
public OpcDataTypeEncodingAttribute(uint id, string namespaceUri)
Parameters
id
UInt32
The numeric identifier of the data type encoding node.
namespaceUri
String
The namespace URI that the Id should refer to.
Gets or sets the URI (Uniform Resource Identifier) or string literal used to identify the namespace the encoding of the Type, to that the attribute has been applied, belongs to.
C#
public string NamespaceUri { get; set; }
Property Value
The URI (Uniform Resource Identifier) or string literal used to identify the namespace the encoding belongs to.
Remarks
The value of this property can be determined by reading the value attribute of the “NamespaceUri” variable node beneath the “DataTypeDictionary” variable node of the according “DataTypeSytem” object node like “OPC Binary” when using the OpcEncodingType for Binary or “XML Schema” when using the OpcEncodingType for Xml. data encoding.
Gets or sets the type of encoding the node, referred to by the Id property of this attribute, represents.
C#
public OpcEncodingType Type { get; set; }
Property Value
One of the members defined by the OpcEncodingType enumeration. The default value is Binary.
Retrieves the OpcEncoding declared by the OpcDataTypeEncodingAttribute.
C#
public OpcEncoding GetEncoding()
Returns
A new OpcEncoding instance which represents the encoding information declared by the OpcDataTypeEncodingAttribute.