VariantType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the type of a variant object, returned by the VarType
function.
public enum class VariantType
public enum VariantType
type VariantType =
Public Enum VariantType
- Inheritance
Fields
Array | 8192 | Array. This member is equivalent to the Visual Basic constant |
Boolean | 11 |
|
Byte | 17 |
|
Char | 18 |
|
Currency | 6 | Currency. This member is equivalent to the Visual Basic constant |
DataObject | 13 | DataObject. |
Date | 7 |
|
Decimal | 14 |
|
Double | 5 |
|
Empty | 0 | Null reference. This member is equivalent to the Visual Basic constant |
Error | 10 | |
Integer | 3 |
|
Long | 20 |
|
Null | 1 | Null object. This member is equivalent to the Visual Basic constant |
Object | 9 | Any type can be stored in a variable of type |
Short | 2 |
|
Single | 4 |
|
String | 8 |
|
UserDefinedType | 36 | User-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 |
Variant | 12 |
|
Remarks
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.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将推出:在整个 2024 年,我们将逐步取消以“GitHub 问题”作为内容的反馈机制,并将其替换为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈