public static enum Variant.Type extends Enum<Variant.Type> implements ComEnum
Enum Constant and Description |
---|
NO_TYPE
This is not a variant type.
|
VT_ARRAY_BOOL
MSDN:
|
VT_ARRAY_BSTR
MSDN:
|
VT_ARRAY_CY
MSDN:
|
VT_ARRAY_DATE
MSDN:
|
VT_ARRAY_DECIMAL
MSDN:
|
VT_ARRAY_I1
MSDN:
|
VT_ARRAY_I2
MSDN:
|
VT_ARRAY_I4
MSDN:
|
VT_ARRAY_INT
MSDN:
|
VT_ARRAY_R4
MSDN:
|
VT_ARRAY_R8
MSDN:
|
VT_ARRAY_UI1
MSDN:
|
VT_ARRAY_UI2
MSDN:
|
VT_ARRAY_UI4
MSDN:
|
VT_ARRAY_UINT
MSDN:
|
VT_ARRAY_VARIANT
MSDN:
|
VT_BOOL
MSDN:
|
VT_BSTR
MSDN:
|
VT_CY
MSDN:
|
VT_DATE
MSDN:
|
VT_DECIMAL
MSDN:
|
VT_DISPATCH
MSDN:
|
VT_EMPTY
MSDN:
|
VT_ERROR
MSDN:
|
VT_I1
MSDN:
|
VT_I2
MSDN: A 2-byte integer value.
|
VT_I4
MSDN: A 4-byte integer value.
|
VT_I8
MSDN:
|
VT_INT
MSDN:
|
VT_NULL
MSDN:
|
VT_R4
MSDN: An IEEE 4-byte real value.
|
VT_R8
MSDN: An 8-byte IEEE real value.
|
VT_RECORD
MSDN:
|
VT_UI1
MSDN:
|
VT_UI2
MSDN:
|
VT_UI4
MSDN:
|
VT_UINT
MSDN:
|
VT_UNKNOWN
MSDN:
|
VT_VARIANT
MSDN:
|
Modifier and Type | Method and Description |
---|---|
int |
comEnumValue()
The integer assigned to this constant.
|
static Variant.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Variant.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Variant.Type NO_TYPE
NO_TYPE
instead of something like UNKNOWN
to make it
more distinguishable from VT_UNKNOWN
, which indicates that the Variant points to an
IUnknown interface.public static final Variant.Type VT_EMPTY
No value was specified. If an optional argument to an Automation method is left blank, do not pass a VARIANT of type VT_EMPTY. Instead, pass a VARIANT of type VT_ERROR with a value of DISP_E_PARAMNOTFOUND.
public static final Variant.Type VT_NULL
A propagating null value was specified. (This should not be confused with the null pointer.) The null value is used for tri-state logic, as with SQL.
public static final Variant.Type VT_I2
public static final Variant.Type VT_I4
public static final Variant.Type VT_R4
public static final Variant.Type VT_R8
public static final Variant.Type VT_CY
A currency value was specified. A currency number is stored as 64-bit (8-byte), two's complement integer, scaled by 10,000 to give a fixed-point number with 15 digits to the left of the decimal point and 4 digits to the right.
public static final Variant.Type VT_DATE
A value denoting a date and time was specified. Dates are represented as double-precision numbers, where midnight, January 1, 1900 is 2.0, January 2, 1900 is 3.0, and so on. The value is passed in date.
This is the same numbering system used by most spreadsheet programs, although some specify incorrectly that February 29, 1900 existed, and thus set January 1, 1900 to 1.0. The date can be converted to and from an MS-DOS representation using VariantTimeToDosDateTime, which is discussed in Conversion and Manipulation Functions.
public static final Variant.Type VT_BSTR
A string was passed; it is stored in bstrVal. This pointer must be obtained and freed by the BSTR functions, which are described in Conversion and Manipulation Functions.
public static final Variant.Type VT_DISPATCH
A pointer to an object was specified. This object is known only to implement IDispatch. The object can be queried as to whether it supports any other desired interface by calling QueryInterface on the object. Objects that do not implement IDispatch should be passed using VT_UNKNOWN.
public static final Variant.Type VT_ERROR
An SCODE was specified. Generally, operations on error values should raise an exception or propagate the error to the return value, as appropriate.
public static final Variant.Type VT_BOOL
A 16 bit Boolean (True/False) value was specified. A value of 0xFFFF (all bits 1) indicates True; a value of 0 (all bits 0) indicates False. No other values are valid.
public static final Variant.Type VT_VARIANT
Invalid. VARIANTARGs must be passed by reference.
public static final Variant.Type VT_UNKNOWN
A pointer to an object that implements the IUnknown interface is passed
public static final Variant.Type VT_DECIMAL
Decimal variables are stored as 96-bit (12-byte) unsigned integers scaled by a variable power of 10. VT_DECIMAL uses the entire 16 bytes of the Variant.
public static final Variant.Type VT_I1
A 1-byte character value is stored.
public static final Variant.Type VT_UI1
An unsigned 1-byte character is stored.
public static final Variant.Type VT_UI2
An unsigned 2-byte integer value is stored.
public static final Variant.Type VT_UI4
An unsigned 4-byte integer value is stored.
public static final Variant.Type VT_I8
A 8-byte integer value is stored in llVal. VT_I8 is not available in Windows Millennium Edition and earlier versions, or Windows 2000 and earlier versions.
public static final Variant.Type VT_INT
An integer value is stored.
public static final Variant.Type VT_UINT
An unsigned integer value is stored.
public static final Variant.Type VT_RECORD
public static final Variant.Type VT_ARRAY_I2
An array of data type VT_I2
was passed.
public static final Variant.Type VT_ARRAY_I4
An array of data type VT_I4
was passed.
public static final Variant.Type VT_ARRAY_R4
An array of data type VT_R4
was passed.
public static final Variant.Type VT_ARRAY_R8
An array of data type VT_R8
was passed.
public static final Variant.Type VT_ARRAY_CY
An array of data type VT_CY
was passed.
public static final Variant.Type VT_ARRAY_DATE
An array of data type VT_DATE
was passed.
public static final Variant.Type VT_ARRAY_BSTR
An array of data type VT_BSTR
was passed.
public static final Variant.Type VT_ARRAY_BOOL
An array of data type VT_BOOL
was passed.
public static final Variant.Type VT_ARRAY_VARIANT
An array of data type VT_VARIANT
was passed.
public static final Variant.Type VT_ARRAY_DECIMAL
An array of data type VT_DECIMAL
was passed.
public static final Variant.Type VT_ARRAY_I1
An array of data type VT_I1
was passed.
public static final Variant.Type VT_ARRAY_UI1
public static final Variant.Type VT_ARRAY_UI2
An array of data type VT_UI1
was passed.
public static final Variant.Type VT_ARRAY_UI4
An array of data type VT_UI4
was passed.
public static final Variant.Type VT_ARRAY_INT
An array of data type VT_INT
was passed.
public static final Variant.Type VT_ARRAY_UINT
An array of data type VT_UINT
was passed.
public static Variant.Type[] values()
for (Variant.Type c : Variant.Type.values()) System.out.println(c);
public static Variant.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int comEnumValue()
ComEnum
comEnumValue
in interface ComEnum
Copyright © 2014. All rights reserved.