OPC Studio User's Guide and Reference
Implicit Type Conversion(VarType,Int32) Operator



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComInterop Namespace > VarType Class > Implicit Type Conversion Operator : Implicit Type Conversion(VarType,Int32) Operator
Numerical VARTYPE to be converted.
Converts a numerical VARTYPE to a VarType object.
Syntax
'Declaration
 
<NotNullAttribute()>
Overloads Public Operator Widening CType( _
   ByVal numericalValue As Integer _
) As VarType
'Usage
 
[NotNull()]
public VarType operator implicit( 
   int numericalValue
)
[NotNull()]
public:
operator VarType^ ( 
   int numericalValue
)

Parameters

numericalValue
Numerical VARTYPE to be converted.

Return Value

Returns a VarType converted from the input argument.
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