Click or drag to resize

PropVariant Class

Defines a utility class that wraps Windows' PROPVARIANT structure.
Inheritance Hierarchy
SystemObject
  ShellBoost.Core.WindowsPropertySystemPropVariant

Namespace:  ShellBoost.Core.WindowsPropertySystem
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public sealed class PropVariant : IDisposable

The PropVariant type exposes the following members.

Constructors
  NameDescription
Public methodPropVariant
Initializes a new instance of the PropVariant class.
Public methodPropVariant(Object)
Initializes a new instance of the PropVariant class with a value.
Top
Properties
  NameDescription
Public propertyStatic memberSizeOfVariant
Gets the native size of a VARIANT.
Public propertyValue
Gets the value.
Public propertyValueAsPropertyStore
Gets or sets the value as a memory property store.
Public propertyVarType
Gets or sets the PropVariant type. Use the setter with caution, it's used for rare cases, for example if you want to force VT_BLOB instead of VT_UI1 | VT_VECTOR.
Top
Methods
  NameDescription
Public methodStatic memberDeserialize(Byte, Boolean)
Deserializes a PropVariant from the specified bytes.
Public methodStatic memberDeserialize(IntPtr, Int32, Boolean)
Deserializes a PropVariant from the specified buffer.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodFinalize
Finalizes an instance of the PropVariant class.
(Overrides ObjectFinalize.)
Public methodStatic memberGetObjectForNative
Converts a COM PROPVARIANT to an object.
Public methodSerialize
Serializes this instance into an array of bytes.
Public methodSerialize(Int32)
Serializes this instance in a buffer that is allocated for this matter.
Public methodStatic memberToBSTR
Creates a VT_BSTR PropVariant, as the default constructor used with a string creates a VT_LPWSTR PropVariant.
Public methodStatic memberToLPSTR
Creates a VT_LPSTR PropVariant, as the default constructor used with a string creates a VT_LPWSTR PropVariant.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
The VT_EMPTY PropVariant.
Public fieldStatic memberMissing
The DISP_E_PARAMNOTFOUND PropVariant.
Public fieldStatic memberNull
The VT_NULL PropVariant.
Top
See Also