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



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

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

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

Parameters

dataType
The data type.

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

valueRank
The value rank.

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