Reference
OpcDataTypeEncodingAttribute Members
Defines the information about the encoding used for a custom data type which is represented by the Type on that this attribute is applied.
Reference
OpcDataTypeEncodingAttribute Members
- Type
- OpcDataTypeEncodingAttribute
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from Attribute.
Constructors
OpcDataTypeEncodingAttribute
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcid to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type encoding node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type encoding node. |
OpcDataTypeEncodingAttribute(byte[])
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(byte[] id)Public Sub New(id As Byte())Parameters
| Name | Type | Description |
|---|---|---|
id | Byte[] | The opaque value of the data type encoding node. |
OpcDataTypeEncodingAttribute(byte[], int)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceIndex to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(byte[] id, int namespaceIndex)Public Sub New(id As Byte(), namespaceIndex As Integer)Parameters
| Name | Type | Description |
|---|---|---|
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. |
OpcDataTypeEncodingAttribute(byte[], string)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceUri specified to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(byte[] id, string namespaceUri)Public Sub New(id As Byte(), namespaceUri As String)Parameters
| Name | Type | Description |
|---|---|---|
id | Byte[] | The opaque value of the data type encoding node. |
namespaceUri | String | The namespace URI that the Id should refer to. |
OpcDataTypeEncodingAttribute(int)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(int id)Public Sub New(id As Integer)Parameters
| Name | Type | Description |
|---|---|---|
id | Int32 | The numeric identifier of the data type encoding node. |
OpcDataTypeEncodingAttribute(int, int)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceIndex to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(int id, int namespaceIndex)Public Sub New(id As Integer, namespaceIndex As Integer)Parameters
| Name | Type | Description |
|---|---|---|
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. |
OpcDataTypeEncodingAttribute(int, string)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceUri specified to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(int id, string namespaceUri)Public Sub New(id As Integer, namespaceUri As String)Parameters
| Name | Type | Description |
|---|---|---|
id | Int32 | The numeric identifier of the data type encoding node. |
namespaceUri | String | The namespace URI that the Id should refer to. |
OpcDataTypeEncodingAttribute(uint)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(uint id)Public Sub New(id As UInteger)Parameters
| Name | Type | Description |
|---|---|---|
id | UInt32 | The numeric identifier of the data type encoding node. |
OpcDataTypeEncodingAttribute(uint, int)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceIndex to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(uint id, int namespaceIndex)Public Sub New(id As UInteger, namespaceIndex As Integer)Parameters
| Name | Type | Description |
|---|---|---|
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. |
OpcDataTypeEncodingAttribute(uint, string)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceUri specified to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(uint id, string namespaceUri)Public Sub New(id As UInteger, namespaceUri As String)Parameters
| Name | Type | Description |
|---|---|---|
id | UInt32 | The numeric identifier of the data type encoding node. |
namespaceUri | String | The namespace URI that the Id should refer to. |
OpcDataTypeEncodingAttribute(string)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(string id)Public Sub New(id As String)Parameters
| Name | Type | Description |
|---|---|---|
id | String | The textual identifier of the data type encoding node. |
OpcDataTypeEncodingAttribute(string, int)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceIndex to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(string id, int namespaceIndex)Public Sub New(id As String, namespaceIndex As Integer)Parameters
| Name | Type | Description |
|---|---|---|
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. |
OpcDataTypeEncodingAttribute(string, string)
Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id and namespaceUri specified to use to identify the according data type encoding node.
public OpcDataTypeEncodingAttribute(string id, string namespaceUri)Public Sub New(id As String, namespaceUri As String)Parameters
| Name | Type | Description |
|---|---|---|
id | String | The textual identifier of the data type encoding node. |
namespaceUri | String | The namespace URI that the Id should refer to. |
Properties
Id
Gets the node identifier used to define the data type encoding node of the Type to that the attribute has been applied.
public OpcNodeId Id { get; }Public ReadOnly Property Id As OpcNodeIdProperty value
An instance of the OpcNodeId which identifies the data type encoding node of the Type to that the attribute has been applied.
NamespaceUri
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.
public string NamespaceUri { get; set; }Public Property NamespaceUri As StringProperty 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.
Type
Gets or sets the type of encoding the node, referred to by the Id property of this attribute, represents.
public OpcEncodingType Type { get; set; }Public Property Type As OpcEncodingTypeProperty value
One of the members defined by the OpcEncodingType enumeration. The default value is Binary.
Methods
GetEncoding
Retrieves the OpcEncoding declared by the OpcDataTypeEncodingAttribute.
public OpcEncoding GetEncoding()Public Function GetEncoding() As OpcEncodingReturns
A new OpcEncoding instance which represents the encoding information declared by the OpcDataTypeEncodingAttribute.

