Reference
OpcDataTypes Members
Provides the identifiers of the data types of OPC UA and methods to map between .NET types, the members of OpcDataType and the identifiers of data types.
Reference
OpcDataTypes Members
- Type
- OpcDataTypes
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Fields
Boolean
Identifies the Boolean data type.
public static readonly OpcNodeId BooleanPublic Shared ReadOnly [Boolean] As OpcNodeIdField value
Byte
Identifies the Byte data type.
public static readonly OpcNodeId BytePublic Shared ReadOnly [Byte] As OpcNodeIdField value
ByteString
Identifies the ByteString data type.
public static readonly OpcNodeId ByteStringPublic Shared ReadOnly ByteString As OpcNodeIdField value
DateTime
Identifies the DateTime data type.
public static readonly OpcNodeId DateTimePublic Shared ReadOnly DateTime As OpcNodeIdField value
DiagnosticInfo
Identifies the DiagnosticInfo data type.
public static readonly OpcNodeId DiagnosticInfoPublic Shared ReadOnly DiagnosticInfo As OpcNodeIdField value
Double
Identifies the Double data type.
public static readonly OpcNodeId DoublePublic Shared ReadOnly [Double] As OpcNodeIdField value
EngineeringUnitInfo
Identifies the EUInformation data type.
public static readonly OpcNodeId EngineeringUnitInfoPublic Shared ReadOnly EngineeringUnitInfo As OpcNodeIdField value
Enumeration
Identifies the Enumeration data type.
public static readonly OpcNodeId EnumerationPublic Shared ReadOnly Enumeration As OpcNodeIdField value
ExpandedNodeId
Identifies the ExpandedNodeId data type.
public static readonly OpcNodeId ExpandedNodeIdPublic Shared ReadOnly ExpandedNodeId As OpcNodeIdField value
Float
Identifies the Float data type.
public static readonly OpcNodeId FloatPublic Shared ReadOnly Float As OpcNodeIdField value
Guid
Identifies the Guid data type.
public static readonly OpcNodeId GuidPublic Shared ReadOnly Guid As OpcNodeIdField value
Int16
Identifies the Int16 data type.
public static readonly OpcNodeId Int16Public Shared ReadOnly Int16 As OpcNodeIdField value
Int32
Identifies the Int32 data type.
public static readonly OpcNodeId Int32Public Shared ReadOnly Int32 As OpcNodeIdField value
Int64
Identifies the Int64 data type.
public static readonly OpcNodeId Int64Public Shared ReadOnly Int64 As OpcNodeIdField value
Integer
Identifies the Integer data type.
public static readonly OpcNodeId IntegerPublic Shared ReadOnly [Integer] As OpcNodeIdField value
LocalizedText
Identifies the LocalizedText data type.
public static readonly OpcNodeId LocalizedTextPublic Shared ReadOnly LocalizedText As OpcNodeIdField value
NodeId
Identifies the NodeId data type.
public static readonly OpcNodeId NodeIdPublic Shared ReadOnly NodeId As OpcNodeIdField value
Number
Identifies the Number data type.
public static readonly OpcNodeId NumberPublic Shared ReadOnly Number As OpcNodeIdField value
QualifiedName
Identifies the QualifiedName data type.
public static readonly OpcNodeId QualifiedNamePublic Shared ReadOnly QualifiedName As OpcNodeIdField value
SByte
Identifies the SByte data type.
public static readonly OpcNodeId SBytePublic Shared ReadOnly [SByte] As OpcNodeIdField value
Status
Identifies the StatusCode data type.
public static readonly OpcNodeId StatusPublic Shared ReadOnly Status As OpcNodeIdField value
String
Identifies the String data type.
public static readonly OpcNodeId StringPublic Shared ReadOnly [String] As OpcNodeIdField value
UInt16
Identifies the UInt16 data type.
public static readonly OpcNodeId UInt16Public Shared ReadOnly UInt16 As OpcNodeIdField value
UInt32
Identifies the UInt32 data type.
public static readonly OpcNodeId UInt32Public Shared ReadOnly UInt32 As OpcNodeIdField value
UInt64
Identifies the UInt64 data type.
public static readonly OpcNodeId UInt64Public Shared ReadOnly UInt64 As OpcNodeIdField value
UInteger
Identifies the UInteger data type.
public static readonly OpcNodeId UIntegerPublic Shared ReadOnly [UInteger] As OpcNodeIdField value
Value
Identifies the DataValue data type.
public static readonly OpcNodeId ValuePublic Shared ReadOnly Value As OpcNodeIdField value
ValueRange
Identifies the Range data type.
public static readonly OpcNodeId ValueRangePublic Shared ReadOnly ValueRange As OpcNodeIdField value
XmlElement
Identifies the XmlElement data type.
public static readonly OpcNodeId XmlElementPublic Shared ReadOnly XmlElement As OpcNodeIdField value
Methods
GetArrayDimensions
| Overload | Description |
|---|---|
| Get | Determines the array dimensions of the type specified by T. |
| Get | Determines the array dimensions of the value specified. |
| Get | Determines the array dimensions of the type specified. |
| Get | Determines the array dimensions of the value specified, or of the type specified if there is no value. |
GetArrayDimensions<T>()
Determines the array dimensions of the type specified by T.
public static OpcArrayDimensions GetArrayDimensions<T>()Public Shared Function GetArrayDimensions(Of T)() As OpcArrayDimensionsType parameters
| Name | Description |
|---|---|
T | The type whose array dimensions are to be determined. |
Returns
The array dimensions with the length 0 for each dimension if T is an array type; otherwise a null reference (Nothing in Visual Basic).
GetArrayDimensions<T>(T)
Determines the array dimensions of the value specified.
public static OpcArrayDimensions GetArrayDimensions<T>(T value)Public Shared Function GetArrayDimensions(Of T)(
value As T) As OpcArrayDimensionsType parameters
| Name | Description |
|---|---|
T | The type of the value. |
Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value whose array dimensions are to be determined. |
Returns
The lengths of the dimensions if the value is an array; the length 0 for each dimension if the type of the value, or T for a null reference (Nothing in Visual Basic), is an array type; otherwise a null reference.
GetArrayDimensions(Type)
Determines the array dimensions of the type specified.
public static OpcArrayDimensions GetArrayDimensions(Type type)Public Shared Function GetArrayDimensions(type As Type) As OpcArrayDimensionsParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose array dimensions are to be determined. |
Returns
The array dimensions with the length 0 for each dimension if the type is an array type; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The type is a null reference ( |
GetArrayDimensions(Type, object)
Determines the array dimensions of the value specified, or of the type specified if there is no value.
public static OpcArrayDimensions GetArrayDimensions(Type type, object value)Public Shared Function GetArrayDimensions(
type As Type,
value As Object) As OpcArrayDimensionsParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose array dimensions are used if the value is a null reference ( |
value | Object | The value whose array dimensions are to be determined. |
Returns
The array dimensions of the value (see GetArrayDimensions), or of the type (see GetArrayDimensions) if the value is a null reference.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The type is a null reference ( |
GetDataType
| Overload | Description |
|---|---|
| GetDataType< | Determines the built-in data type of the type specified by T. |
| GetDataType( | Determines the built-in data type of the type specified. |
| GetDataType( | Determines the data type represented by the identifier of a data type specified. |
GetDataType<T>()
Determines the built-in data type of the type specified by T.
public static OpcDataType GetDataType<T>()Public Shared Function GetDataType(Of T)() As OpcDataTypeType parameters
| Name | Description |
|---|---|
T | The type whose built-in data type is to be determined. |
Returns
The built-in data type (see GetDataType).
GetDataType(Type)
Determines the built-in data type of the type specified.
public static OpcDataType GetDataType(Type type)Public Shared Function GetDataType(type As Type) As OpcDataTypeParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose built-in data type is to be determined. |
Returns
The built-in data type of the data type of the type (see GetNodeId), or Null if the type is a null reference (Nothing in Visual Basic) or its data type is not defined by OPC UA.
Remarks
For an array type the data type of its elements is determined. Unlike GetDataType, the method results in the built-in type which encodes the data type, e.g. ExtensionObject for a structure and Variant for object.
GetDataType(OpcNodeId)
Determines the data type represented by the identifier of a data type specified.
public static OpcDataType GetDataType(OpcNodeId nodeId)Public Shared Function GetDataType(nodeId As OpcNodeId) As OpcDataTypeParameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The identifier of the data type. |
Returns
The member of OpcDataType whose identifier (see GetNodeId) is the nodeId, Object for any other data type, or Null if the nodeId is a null reference (Nothing in Visual Basic) or a null identifier.
GetDefaultValue
| Overload | Description |
|---|---|
| GetDefaultValue< | Determines the default value OPC UA defines for the data type of the type specified by T. |
| GetDefaultValue< | Determines the default value OPC UA defines for the data type of the type specified by T and the value rank of the value specified. |
GetDefaultValue<T>()
Determines the default value OPC UA defines for the data type of the type specified by T.
public static T GetDefaultValue<T>()Public Shared Function GetDefaultValue(Of T)() As TType parameters
| Name | Description |
|---|---|
T | The type whose default value is to be determined. |
Returns
T
The default value of the data type (e.g. 0 for numbers) if it is a T; otherwise the default value of T.
GetDefaultValue<T>(T)
Determines the default value OPC UA defines for the data type of the type specified by T and the value rank of the value specified.
public static T GetDefaultValue<T>(T value)Public Shared Function GetDefaultValue(Of T)(value As T) As TType parameters
| Name | Description |
|---|---|
T | The type whose default value is to be determined. |
Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value whose value rank is used ( |
Returns
T
The default value of the data type (e.g. 0 for numbers) if it is a T; otherwise the default value of T.
GetNodeId
| Overload | Description |
|---|---|
| GetNodeId< | Determines the identifier of the data type of the type specified by T. |
| GetNodeId( | Determines the identifier of the data type of the type specified. |
| GetNodeId( | Determines the identifier of the data type of the value specified. |
| GetNodeId( | Determines the identifier of the data type represented by the type specified. |
GetNodeId<T>()
Determines the identifier of the data type of the type specified by T.
public static OpcNodeId GetNodeId<T>()Public Shared Function GetNodeId(Of T)() As OpcNodeIdType parameters
| Name | Description |
|---|---|
T | The type whose data type is to be determined. |
Returns
The identifier of the data type (see GetNodeId).
GetNodeId(Type)
Determines the identifier of the data type of the type specified.
public static OpcNodeId GetNodeId(Type type)Public Shared Function GetNodeId(type As Type) As OpcNodeIdParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose data type is to be determined. |
Returns
The identifier of the data type, or Null if the type is a null reference (Nothing in Visual Basic).
Remarks
For an array type the data type of its elements is determined. The type object results in the BaseDataType data type.
GetNodeId(object)
Determines the identifier of the data type of the value specified.
public static OpcNodeId GetNodeId(object value)Public Shared Function GetNodeId(value As Object) As OpcNodeIdParameters
| Name | Type | Description |
|---|---|---|
value | Object | The value whose data type is to be determined. |
Returns
The identifier of the data type of the type of the value (see GetNodeId), or Null if the value is a null reference (Nothing in Visual Basic).
GetNodeId(OpcDataType)
Determines the identifier of the data type represented by the type specified.
public static OpcNodeId GetNodeId(OpcDataType type)Public Shared Function GetNodeId(type As OpcDataType) As OpcNodeIdParameters
| Name | Type | Description |
|---|---|---|
type | OpcDataType | The data type whose identifier is to be determined. |
Returns
The identifier of the data type, or Null for Null, ExtensionObject, Variant and Object.
GetUnderlyingType
| Overload | Description |
|---|---|
| Get | Determines the . |
| Get | Determines the . |
GetUnderlyingType(OpcDataType)
Determines the .NET type used for values of the data type specified.
public static Type GetUnderlyingType(OpcDataType type)Public Shared Function GetUnderlyingType(type As OpcDataType) As TypeParameters
| Name | Type | Description |
|---|---|---|
type | OpcDataType | The data type whose . |
Returns
The .NET type (see GetUnderlyingType), or a null reference (Nothing in Visual Basic) for a data type without identifier (see GetNodeId).
GetUnderlyingType(OpcNodeId)
Determines the .NET type used for values of the data type with the identifier specified.
public static Type GetUnderlyingType(OpcNodeId nodeId)Public Shared Function GetUnderlyingType(nodeId As OpcNodeId) As TypeParameters
| Name | Type | Description |
|---|---|---|
nodeId | OpcNodeId | The identifier of the data type. |
Returns
The .NET type used for values of the data type (e.g. OpcText for LocalizedText), the .NET type of a data type defined by a .NET type, otherwise object; or a null reference (Nothing in Visual Basic) if the nodeId is a null reference or a null identifier.
GetValueRank
| Overload | Description |
|---|---|
| GetValueRank< | Determines the value rank of the type specified by T. |
| GetValueRank< | Determines the value rank of the value specified. |
| GetValueRank( | Determines the value rank of the type specified. |
| GetValueRank( | Determines the value rank of the value specified, or of the type specified if there is no value. |
GetValueRank<T>()
Determines the value rank of the type specified by T.
public static int GetValueRank<T>()Public Shared Function GetValueRank(Of T)() As IntegerType parameters
| Name | Description |
|---|---|
T | The type whose value rank is to be determined. |
Returns
The value rank (see GetValueRank).
GetValueRank<T>(T)
Determines the value rank of the value specified.
public static int GetValueRank<T>(T value)Public Shared Function GetValueRank(Of T)(value As T) As IntegerType parameters
| Name | Description |
|---|---|
T | The type of the value. |
Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value whose value rank is to be determined. |
Returns
The value rank (see GetValueRank).
GetValueRank(Type)
Determines the value rank of the type specified.
public static int GetValueRank(Type type)Public Shared Function GetValueRank(type As Type) As IntegerParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose value rank is to be determined. |
Returns
The value rank (see GetValueRank).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The type is a null reference ( |
GetValueRank(Type, object)
Determines the value rank of the value specified, or of the type specified if there is no value.
public static int GetValueRank(Type type, object value)Public Shared Function GetValueRank(type As Type, value As Object) As IntegerParameters
| Name | Type | Description |
|---|---|---|
type | Type | The type whose value rank is used if the value is a null reference ( |
value | Object | The value whose value rank is to be determined. |
Returns
The value rank as defined by OPC UA: -1 for a scalar, otherwise the number of dimensions of the array.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The type is a null reference ( |
Remarks
A byte array is a one-dimensional array; a ByteString is a scalar.

