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