Skip to content

Reference

OpcDataTypeAttribute Members

Defines the identifier of a custom data type which is represented by the Type on that this attribute is applied.

Reference

OpcDataTypeAttribute Members ​

Type
OpcDataTypeAttribute
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 ​

OpcDataTypeAttribute ​

12 overloads

OverloadDescription
OpcDataTypeAttribute(byte[])Initializes a new instance of the OpcDataTypeAttribute class using the id to use to identify the according data type node.
OpcDataTypeAttribute(byte[], int)Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.
OpcDataTypeAttribute(byte[], string)since v2.8Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
OpcDataTypeAttribute(int)Initializes a new instance of the OpcDataTypeAttribute class using the id to use to identify the according data type node.
OpcDataTypeAttribute(int, int)Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.
OpcDataTypeAttribute(int, string)since v2.8Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
OpcDataTypeAttribute(uint)Initializes a new instance of the OpcDataTypeAttribute class using the id to use to identify the according data type node.
OpcDataTypeAttribute(uint, int)Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.
OpcDataTypeAttribute(uint, string)since v2.8Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
OpcDataTypeAttribute(string)Initializes a new instance of the OpcDataTypeAttribute class using the id to use to identify the according data type node.
OpcDataTypeAttribute(string, int)Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.
OpcDataTypeAttribute(string, string)since v2.8Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.

OpcDataTypeAttribute(byte[]) ​

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

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

Parameters

NameTypeDescription
idByte[]The opaque value of the data type node.

OpcDataTypeAttribute(byte[], int) ​

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.

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

Parameters

NameTypeDescription
idByte[]The opaque value of the data type node.
namespaceIndexInt32The index of the namespace to that the data type node belongs.

OpcDataTypeAttribute(byte[], string) ​

since v2.8

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.

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

Parameters

NameTypeDescription
idByte[]The opaque value of the data type node.
namespaceUriStringThe namespace URI that the Id should refer to.

OpcDataTypeAttribute(int) ​

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

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

Parameters

NameTypeDescription
idInt32The numeric identifier of the data type node.

OpcDataTypeAttribute(int, int) ​

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.

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

Parameters

NameTypeDescription
idInt32The numeric identifier of the data type node.
namespaceIndexInt32The index of the namespace to that the data type node belongs.

OpcDataTypeAttribute(int, string) ​

since v2.8

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.

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

Parameters

NameTypeDescription
idInt32The numeric identifier of the data type node.
namespaceUriStringThe namespace URI that the Id should refer to.

OpcDataTypeAttribute(uint) ​

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

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

Parameters

NameTypeDescription
idUInt32The numeric identifier of the data type node.

OpcDataTypeAttribute(uint, int) ​

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.

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

Parameters

NameTypeDescription
idUInt32The numeric identifier of the data type node.
namespaceIndexInt32The index of the namespace to that the data type node belongs.

OpcDataTypeAttribute(uint, string) ​

since v2.8

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.

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

Parameters

NameTypeDescription
idUInt32The numeric identifier of the data type node.
namespaceUriStringThe namespace URI that the Id should refer to.

OpcDataTypeAttribute(string) ​

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

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

Parameters

NameTypeDescription
idStringThe textual identifier of the data type node.

OpcDataTypeAttribute(string, int) ​

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceIndex to use to identify the according data type node.

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

Parameters

NameTypeDescription
idStringThe textual identifier of the data type node.
namespaceIndexInt32The index of the namespace to that the data type node belongs.

OpcDataTypeAttribute(string, string) ​

since v2.8

Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.

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

Parameters

NameTypeDescription
idStringThe textual identifier of the data type node.
namespaceUriStringThe namespace URI that the Id should refer to.

Properties ​

Description ​

since v2.8

Gets or sets a human readable text that describes the data type.

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

Property value

String

A value which captures any semantic information that whould help a human to unterstand what is contained in the data type.

Id ​

Gets the node identifier used to define the data type 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 node of the Type to that the attribute has been applied.

Name ​

since v2.32

Gets or sets the name of the data type.

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

Property value

String

The name which identifies the data type.

NamespaceUri ​

since v2.13

Gets or sets the URI (Uniform Resource Identifier) or string literal used to identify the namespace 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 type 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 within the type is described.

UseDataTypeDefinition ​

since v2.26

Gets or sets a value indicating whether the data type is to be declared in a custom data type definition.

csharp
public bool UseDataTypeDefinition { get; set; }
vbnet
Public Property UseDataTypeDefinition As Boolean

Property value

Boolean

The value if the data type is to be declared in a custom data type definition; otherwise the value false. The default value is true.

UseDataTypeDescription ​

since v2.13

Gets or sets a value indicating whether the data type is to be declared in a custom data type dictionary.

csharp
public bool UseDataTypeDescription { get; set; }
vbnet
Public Property UseDataTypeDescription As Boolean

Property value

Boolean

The value if the data type is to be declared in a custom data type dictionary; otherwise the value false. The default value is true.

Methods ​

GetNamespace ​

since v2.13

Retrieves the OpcNamespace referenced to by the OpcDataTypeAttribute.

csharp
public OpcNamespace GetNamespace()
vbnet
Public Function GetNamespace() As OpcNamespace

Returns

OpcNamespace

A new OpcNamespace instance which represents the namespace information referenced by the OpcDataTypeAttribute.