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 rank.
A value that may help determining the (rank of the resulting array) type.
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, _
   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.
valueRank
The value rank.
valueHint
A value that may help determining the (rank of the resulting array) type.

Return Value

Returns the .NET type of OPC-UA Value attribute.
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