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
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcid to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceUri specified to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid and namespaceIndex to use to identify the according data type node. |
| Opc | Initializes a new instance of the Opcid 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.
public OpcDataTypeAttribute(byte[] id)Public Sub New(id As Byte())Parameters
| Name | Type | Description |
|---|---|---|
id | Byte[] | 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.
public OpcDataTypeAttribute(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 node. |
namespaceIndex | Int32 | The index of the namespace to that the data type node belongs. |
OpcDataTypeAttribute(byte[], string)
Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
public OpcDataTypeAttribute(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 node. |
namespaceUri | String | The 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.
public OpcDataTypeAttribute(int id)Public Sub New(id As Integer)Parameters
| Name | Type | Description |
|---|---|---|
id | Int32 | The 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.
public OpcDataTypeAttribute(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 node. |
namespaceIndex | Int32 | The index of the namespace to that the data type node belongs. |
OpcDataTypeAttribute(int, string)
Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
public OpcDataTypeAttribute(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 node. |
namespaceUri | String | The 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.
public OpcDataTypeAttribute(uint id)Public Sub New(id As UInteger)Parameters
| Name | Type | Description |
|---|---|---|
id | UInt32 | The 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.
public OpcDataTypeAttribute(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 node. |
namespaceIndex | Int32 | The index of the namespace to that the data type node belongs. |
OpcDataTypeAttribute(uint, string)
Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
public OpcDataTypeAttribute(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 node. |
namespaceUri | String | The 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.
public OpcDataTypeAttribute(string id)Public Sub New(id As String)Parameters
| Name | Type | Description |
|---|---|---|
id | String | The 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.
public OpcDataTypeAttribute(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 node. |
namespaceIndex | Int32 | The index of the namespace to that the data type node belongs. |
OpcDataTypeAttribute(string, string)
Initializes a new instance of the OpcDataTypeAttribute class using the id and namespaceUri specified to use to identify the according data type node.
public OpcDataTypeAttribute(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 node. |
namespaceUri | String | The namespace URI that the Id should refer to. |
Properties
Description
Gets or sets a human readable text that describes the data type.
public string Description { get; set; }Public Property Description As StringProperty value
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.
public OpcNodeId Id { get; }Public ReadOnly Property Id As OpcNodeIdProperty value
An instance of the OpcNodeId which identifies the data type node of the Type to that the attribute has been applied.
Name
Gets or sets the name of the data type.
public string Name { get; set; }Public Property Name As StringProperty value
The name which identifies the data type.
NamespaceUri
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.
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 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
Gets or sets a value indicating whether the data type is to be declared in a custom data type definition.
public bool UseDataTypeDefinition { get; set; }Public Property UseDataTypeDefinition As BooleanProperty value
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
Gets or sets a value indicating whether the data type is to be declared in a custom data type dictionary.
public bool UseDataTypeDescription { get; set; }Public Property UseDataTypeDescription As BooleanProperty value
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
Retrieves the OpcNamespace referenced to by the OpcDataTypeAttribute.
public OpcNamespace GetNamespace()Public Function GetNamespace() As OpcNamespaceReturns
A new OpcNamespace instance which represents the namespace information referenced by the OpcDataTypeAttribute.

