Determines a CLR (.NET)
System.Type that corresponds to a given OLE automation
VarType .
'Declaration
<NotNullAttribute()>
Public Shared Function TypeFromVarType( _
ByVal As VarType _
) As Type
'Usage
Dim varType As VarType
Dim value As Type
value = VarTypeUtilities.TypeFromVarType(varType)
[NotNull()]
public static Type TypeFromVarType(
VarType
)
[NotNull()]
public:
static Type^ TypeFromVarType(
VarType^
)
Parameters
- varType
- The VarType for which the corresponding CLR (.NET) type should be determined.
Return Value
The resulting
System.Type. If it cannot be specifically determined, a
typeof(Object)
is returned.
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