ComVariant Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A type that represents an OLE VARIANT in managed code.
public value class ComVariant : IDisposable
public struct ComVariant : IDisposable
type ComVariant = struct
interface IDisposable
Public Structure ComVariant
Implements IDisposable
- Inheritance
- Implements
Properties
Null |
A ComVariant instance that represents a |
VarType |
The type of the data stored in this ComVariant. |
Methods
As<T>() |
Create a managed value based on the value in the ComVariant instance. |
Create<T>(T) |
Create an ComVariant instance from the specified value. |
CreateRaw<T>(VarEnum, T) |
Create a ComVariant with the given type and provided value. |
Dispose() |
Release resources owned by this ComVariant instance. |
GetRawDataRef<T>() |
Get a reference to the storage location within this ComVariant instance. |