VARIANT class Null safety Struct

The VARIANT type is used in Win32 to represent a dynamic type. It is represented as a struct containing a union of the types that could be stored.

VARIANTs must be initialized with VariantInit before their use.

Inheritance

Constructors

VARIANT()

Properties

bstrVal Pointer<Utf16>
read / write
bVal int
read / write
byref Pointer<NativeType>
read / write
cVal int
read / write
dblVal double
read / write
fltVal double
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
intVal int
read / write
iVal int
read / write
llVal int
read / write
lVal int
read / write
pbVal Pointer<Uint8>
read / write
pdblVal Pointer<Double>
read / write
pdispVal IDispatch
read / write
pfltVal Pointer<Float>
read / write
piVal Pointer<Int16>
read / write
pllVal Pointer<Int64>
read / write
plVal Pointer<Int32>
read / write
punkVal IUnknown
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uintVal int
read / write
uiVal int
read / write
ullVal int
read / write
ulVal int
read / write
vt int
@Uint16(), read / write
wReserved1 int
@Uint16(), read / write
wReserved2 int
@Uint16(), read / write
wReserved3 int
@Uint16(), read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited