OPC Studio User's Guide and Reference
GetValueType(Type,Int32,Object) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAType Class > GetValueType Method : GetValueType(Type,Int32,Object) Method
The data type.

The value of this parameter cannot be null (Nothing in Visual Basic).

The value rank.
A value that may help determining the (rank of the resulting array) type.

The value of this parameter can be null (Nothing in Visual Basic).

Determines .NET type of OPC-UA Value attribute with given data type and value rank, specifying a value hint.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function GetValueType( _
   ByVal dataType As Type, _
   ByVal valueRank As Integer, _
   ByVal valueHint As Object _
) As Type
'Usage
 
Dim dataType As Type
Dim valueRank As Integer
Dim valueHint As Object
Dim value As Type
 
value = UAType.GetValueType(dataType, valueRank, valueHint)
[NotNull()]
public static Type GetValueType( 
   Type dataType,
   int valueRank,
   object valueHint
)
[NotNull()]
public:
static Type^ GetValueType( 
   Type^ dataType,
   int valueRank,
   Object^ valueHint
) 

Parameters

dataType
The data type.

The value of this parameter cannot be null (Nothing in Visual Basic).

valueRank
The value rank.
valueHint
A value that may help determining the (rank of the resulting array) type.

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

Returns the .NET type of OPC-UA Value attribute.

This method never returns null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also