Export (0) Print
Expand All

VariantType Enumeration

Indicates the type of a variant object, returned by the VarType function.

Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public enum VariantType
public enum VariantType
public enum VariantType

 Member nameDescription
Supported by the .NET Compact FrameworkArrayArray. This member is equivalent to the Visual Basic constant vbArray
Supported by the .NET Compact FrameworkBooleanBoolean. (True or False.) This member is equivalent to the Visual Basic constant vbBoolean
Supported by the .NET Compact FrameworkByteByte. (0 through 255.) This member is equivalent to the Visual Basic constant vbByte
Supported by the .NET Compact FrameworkCharChar. (0 through 65535.) This member is equivalent to the Visual Basic constant vbChar
Supported by the .NET Compact FrameworkCurrencyCurrency. This member is equivalent to the Visual Basic constant vbCurrency
Supported by the .NET Compact FrameworkDataObjectDataObject. 
Supported by the .NET Compact FrameworkDateDate. (0:00:00 on January 1, 0001 through 11:59:59 PM on December 31, 9999.) This member is equivalent to the Visual Basic constant vbDate
Supported by the .NET Compact FrameworkDecimalDecimal. (0 through +/-79,228,162,514,264,337,593,543,950,335 with no decimal point; 0 through +/-7.9228162514264337593543950335 with 28 places to the right of the decimal; smallest non-zero number is +/-0.0000000000000000000000000001.) This member is equivalent to the Visual Basic constant vbDecimal
Supported by the .NET Compact FrameworkDoubleDouble. (-1.79769313486231E+308 through -4.94065645841247E-324 for negative values; 4.94065645841247E-324 through 1.79769313486231E+308 for positive values.) This member is equivalent to the Visual Basic constant vbDouble
Supported by the .NET Compact FrameworkEmptyNull reference. This member is equivalent to the Visual Basic constant vbEmpty
Supported by the .NET Compact FrameworkErrorSystem.Exception 
Supported by the .NET Compact FrameworkIntegerInteger. (-2,147,483,648 through 2,147,483,647.) This member is equivalent to the Visual Basic constant vbInteger
Supported by the .NET Compact FrameworkLongLong. (-9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.) This member is equivalent to the Visual Basic constant vbLong
Supported by the .NET Compact FrameworkNullNull object. This member is equivalent to the Visual Basic constant vbNull
Supported by the .NET Compact FrameworkObjectAny type can be stored in a variable of type Object. This member is equivalent to the Visual Basic constant vbObject
Supported by the .NET Compact FrameworkShortShort. (-32,768 through 32,767.) 
Supported by the .NET Compact FrameworkSingleSingle. (-3.402823E+38 through -1.401298E-45 for negative values; 1.401298E-45 through 3.402823E+38 for positive values.) This member is equivalent to the Visual Basic constant vbSingle
Supported by the .NET Compact FrameworkStringString. (0 to approximately 2 billion Unicode characters.) This member is equivalent to the Visual Basic constant vbString
Supported by the .NET Compact FrameworkUserDefinedTypeUser-defined type. Each member of the structure has a range determined by its data type and independent of the ranges of the other members. This member is equivalent to the Visual Basic constant vbUserDefinedType
Supported by the .NET Compact FrameworkVariantVariant. This member is equivalent to the Visual Basic constant vbVariant

For more detailed information, see the Visual Basic topic VariantType Enumeration.

When you call the VarType function, you can use enumeration members in your code in place of the actual values.

The VariantType enumeration defines constants used to identify possible Variant types. The following table lists the VariantType enumeration members.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft