QuickOPC User's Guide and Reference
Implicit Type Conversion(VarType,VarTypes) Operator



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComInterop Namespace > VarType Class > Implicit Type Conversion Operator : Implicit Type Conversion(VarType,VarTypes) Operator
Enumerated value to be converted.
Converts an enumerated value to a VarType object.
Syntax
'Declaration
 
<NotNullAttribute()>
Overloads Public Operator Widening CType( _
   ByVal internalValue As VarTypes _
) As VarType
'Usage
 
[NotNull()]
public VarType operator implicit( 
   VarTypes internalValue
)
[NotNull()]
public:
operator VarType^ ( 
   VarTypes internalValue
)

Parameters

internalValue
Enumerated value 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