public struct PropertyVariant : IDisposable, ValueType
The PropertyVariant structure is used to store data.
For more information, see .
BlobValue
VT_BLOB
public Blob BlobValue
BoolValue
VT_BOOL
public Boolean BoolValue
BValue
VT_UI1
public Byte BValue
CValue
VT_I1, Version 1
public SByte CValue
Date
VT_DATE
public DateTime Date
DoubleValue
VT_R8
public Double DoubleValue
FileTime
VT_FILETIME
public FILETIME FileTime
FloatValue
VT_R4
public Single FloatValue
HValue
VT_I8
public Int64 HValue
IntValue
VT_INT, Version 1
public Int32 IntValue
IValue
VT_I2
public Int16 IValue
LValue
VT_I4
public Int32 LValue
PointerValue
VT_PTR
public IntPtr PointerValue
Reserved1
Reserved for future use.
public Int16 Reserved1
Reserved2
Reserved for future use.
public Int16 Reserved2
Reserved3
Reserved for future use.
public Int16 Reserved3
SCode
VT_ERROR
public Int32 SCode
UHValue
VT_UI8
public UInt64 UHValue
UIntValue
VT_UINT, Version 1
public UInt32 UIntValue
UIValue
VT_UI2
public UInt16 UIValue
ULValue
VT_UI4
public UInt32 ULValue
Vartype
Value type tag.
public Int16 Vartype
PropertyVariant()
The PropertyVariant structure is used to store data.
public void PropertyVariant()
Remarks
For more information, see .
Dispose()
Releases the associated memory by calling the PropVariantClear function.
public void Dispose()
GetValue()
Returns the associated value of the PropertyVariant. The type of the returned value is defined through the DataType property.
public object GetValue()
Returns
The associated value of the PropertyVariant. If the datatype is not supported, the GetValue method will return null.
Remarks
Not all datatypes are supported.
ToString()
Returns a String that represents the value of this instance.
public String ToString()
Returns
A String that represents the value of this instance.
DataType
Gets or sets the datatype of the PropertyVariant.
public VarEnum DataType { get; set; }