PropVariant Class |
Namespace: ShellBoost.Core.WindowsPropertySystem
public sealed class PropVariant : IDisposable
The PropVariant type exposes the following members.
| Name | Description | |
|---|---|---|
| PropVariant |
Initializes a new instance of the PropVariant class.
| |
| PropVariant(Object) |
Initializes a new instance of the PropVariant class with a value.
|
| Name | Description | |
|---|---|---|
| SizeOfVariant |
Gets the native size of a VARIANT.
| |
| Value |
Gets the value.
| |
| ValueAsPropertyStore |
Gets or sets the value as a memory property store.
| |
| VarType |
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.
|
| Name | Description | |
|---|---|---|
| Deserialize(Byte, Boolean) |
Deserializes a PropVariant from the specified bytes.
| |
| Deserialize(IntPtr, Int32, Boolean) |
Deserializes a PropVariant from the specified buffer.
| |
| Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
| Finalize |
Finalizes an instance of the PropVariant class.
(Overrides ObjectFinalize.) | |
| GetObjectForNative |
Converts a COM PROPVARIANT to an object.
| |
| Serialize |
Serializes this instance into an array of bytes.
| |
| Serialize(Int32) |
Serializes this instance in a buffer that is allocated for this matter.
| |
| ToBSTR |
Creates a VT_BSTR PropVariant, as the default constructor used with a string creates a VT_LPWSTR PropVariant.
| |
| ToLPSTR |
Creates a VT_LPSTR PropVariant, as the default constructor used with a string creates a VT_LPWSTR PropVariant.
| |
| ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) |
| Name | Description | |
|---|---|---|
| Empty |
The VT_EMPTY PropVariant.
| |
| Missing |
The DISP_E_PARAMNOTFOUND PropVariant.
| |
| Null |
The VT_NULL PropVariant.
|