Skip to content

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 ​

12 overloads

OverloadDescription
OpcDataTypeEncodingAttribute(byte[])Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according 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.
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.
OpcDataTypeEncodingAttribute(int)Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according 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.
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.
OpcDataTypeEncodingAttribute(uint)Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according 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.
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.
OpcDataTypeEncodingAttribute(string)Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according 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.
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.

OpcDataTypeEncodingAttribute(byte[]) ​

Initializes a new instance of the OpcDataTypeEncodingAttribute class using the id to use to identify the according data type encoding node.

csharp
public OpcDataTypeEncodingAttribute(byte[] id)
vbnet
Public Sub New(id As Byte())

Parameters

NameTypeDescription
idByte[]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.

csharp
public OpcDataTypeEncodingAttribute(byte[] id, int namespaceIndex)
vbnet
Public Sub New(id As Byte(), namespaceIndex As Integer)

Parameters

NameTypeDescription
idByte[]The opaque value of the data type encoding node.
namespaceIndexInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(byte[] id, string namespaceUri)
vbnet
Public Sub New(id As Byte(), namespaceUri As String)

Parameters

NameTypeDescription
idByte[]The opaque value of the data type encoding node.
namespaceUriStringThe 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.

csharp
public OpcDataTypeEncodingAttribute(int id)
vbnet
Public Sub New(id As Integer)

Parameters

NameTypeDescription
idInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(int id, int namespaceIndex)
vbnet
Public Sub New(id As Integer, namespaceIndex As Integer)

Parameters

NameTypeDescription
idInt32The numeric identifier of the data type encoding node.
namespaceIndexInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(int id, string namespaceUri)
vbnet
Public Sub New(id As Integer, namespaceUri As String)

Parameters

NameTypeDescription
idInt32The numeric identifier of the data type encoding node.
namespaceUriStringThe 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.

csharp
public OpcDataTypeEncodingAttribute(uint id)
vbnet
Public Sub New(id As UInteger)

Parameters

NameTypeDescription
idUInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(uint id, int namespaceIndex)
vbnet
Public Sub New(id As UInteger, namespaceIndex As Integer)

Parameters

NameTypeDescription
idUInt32The numeric identifier of the data type encoding node.
namespaceIndexInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(uint id, string namespaceUri)
vbnet
Public Sub New(id As UInteger, namespaceUri As String)

Parameters

NameTypeDescription
idUInt32The numeric identifier of the data type encoding node.
namespaceUriStringThe 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.

csharp
public OpcDataTypeEncodingAttribute(string id)
vbnet
Public Sub New(id As String)

Parameters

NameTypeDescription
idStringThe 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.

csharp
public OpcDataTypeEncodingAttribute(string id, int namespaceIndex)
vbnet
Public Sub New(id As String, namespaceIndex As Integer)

Parameters

NameTypeDescription
idStringThe textual identifier of the data type encoding node.
namespaceIndexInt32The 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.

csharp
public OpcDataTypeEncodingAttribute(string id, string namespaceUri)
vbnet
Public Sub New(id As String, namespaceUri As String)

Parameters

NameTypeDescription
idStringThe textual identifier of the data type encoding node.
namespaceUriStringThe 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.

csharp
public OpcNodeId Id { get; }
vbnet
Public ReadOnly Property Id As OpcNodeId

Property value

OpcNodeId

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.

csharp
public string NamespaceUri { get; set; }
vbnet
Public Property NamespaceUri As String

Property value

String

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.

csharp
public OpcEncodingType Type { get; set; }
vbnet
Public Property Type As OpcEncodingType

Property value

OpcEncodingType

One of the members defined by the OpcEncodingType enumeration. The default value is Binary.

Methods ​

GetEncoding ​

Retrieves the OpcEncoding declared by the OpcDataTypeEncodingAttribute.

csharp
public OpcEncoding GetEncoding()
vbnet
Public Function GetEncoding() As OpcEncoding

Returns

OpcEncoding

A new OpcEncoding instance which represents the encoding information declared by the OpcDataTypeEncodingAttribute.