Variant.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.
Specifies the type of a variant object as used by a managed package framework (MPF) language service class.
public: enum class Variant::VariantType
enum Variant::VariantType
public enum Variant.VariantType
type Variant.VariantType =
Public Enum Variant.VariantType
- Inheritance
-
Variant.VariantType
Fields
Name | Value | Description |
---|---|---|
VT_EMPTY | 0 | An empty variant. |
VT_NULL | 1 | A null value. |
VT_I2 | 2 | A 2 byte (16-bit) signed integer. |
VT_I4 | 3 | A 4 byte (32-bit) signed integer. |
VT_R4 | 4 | A 4 byte real number, also known as a float. |
VT_R8 | 5 | An 8 byte real number, also known as a double. |
VT_CY | 6 | A Currency value (fixed decimal point value stored in 64-bits). |
VT_DATE | 7 | A |
VT_BSTR | 8 | A string. |
VT_DISPATCH | 9 | An object that implements the IDispatch interface. |
VT_ERROR | 10 | An error code (typically returned from a Win32 function). |
VT_BOOL | 11 | A value representing true (-1) or false (0). |
VT_VARIANT | 12 | A reference to a variant object. |
VT_UNKNOWN | 13 | An object implementing the |
VT_DECIMAL | 14 | A decimal number stored as a string. |
VT_I1 | 16 | A 1 byte (8-bit) signed integer. |
VT_UI1 | 17 | A 1 byte (8-bit) unsigned integer. |
VT_UI2 | 18 | A 2 byte (16-bit) unsigned integer. |
VT_UI4 | 19 | A 4 byte (32-bit) unsigned integer. |
VT_I8 | 20 | An 8 byte (64-bit) signed integer. |
VT_UI8 | 21 | An 8 byte (64-bit) unsigned integer. |
VT_INT | 22 | A generic integer (typically a 32-bit value). |
VT_UINT | 23 | A generic unsigned integer (typically 32-bits). |
VT_VOID | 24 | A C-style |
VT_HRESULT | 25 | An |
VT_PTR | 26 | A generic pointer. |
VT_SAFEARRAY | 27 | An array that is guaranteed to be at least empty (that is, it is never a null value). |
VT_CARRAY | 28 | A C-style array (an array of pointers). |
VT_USERDEFINED | 29 | A user-defined blob. |
VT_LPSTR | 30 | A pointer to a null-terminated ANSI string. |
VT_LPWSTR | 31 | A pointer to a null-terminated wide character (Unicode) string. |
VT_FILETIME | 64 | A FILETIME value. |
VT_BLOB | 65 | An arbitrary block of memory. |
VT_STREAM | 66 | A stream of bytes. |
VT_STORAGE | 67 | Name of the storage. |
VT_STREAMED_OBJECT | 68 | A stream that contains an object. |
VT_STORED_OBJECT | 69 | A storage object. |
VT_BLOB_OBJECT | 70 | An arbitrary block of memory representing an object. |
VT_CF | 71 | A value specifying a clipboard format. |
VT_CLSID | 72 | A |
VT_ILLEGALMASKED | 4095 | A bit mask to isolate valid variant types. |
VT_TYPEMASK | 4095 | A bit mask to isolate valid variant types. |
VT_VECTOR | 4096 | An array with a leading count value. |
VT_ARRAY | 8192 | An array of variants. |
VT_BYREF | 16384 | A reference to an object. |
VT_RESERVED | 32768 | Reserved for future use. |
VT_ILLEGAL | 65535 | Represents an illegal variant type. |
Remarks
The values here correspond to a standard variant type but these are used specifically with the Variant structure in an MPF language service. The language service is interested in only one variant type, VT_UI2, which is a 2 byte unsigned integer representing a Unicode character.