Fields (22) Methods (4) Properties (1)
Namespace: CSCore.Win32

Syntax

public struct PropertyVariant : IDisposable, ValueType

Base Type

  • System.ValueType

Implements

  • System.IDisposable

Summary

The PropertyVariant structure is used to store data.

Remarks

For more information, see .

Uses

Used by

Fields

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
public  Double DoubleValue

FileTime

VT_FILETIME

public  FILETIME FileTime
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
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

Methods

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.

Properties

DataType

Gets or sets the datatype of the PropertyVariant.

public VarEnum DataType { get; set; }