Partager via


Variant Members

Include Protected Members
Include Inherited Members

Represents an object that can be interpreted as more than one type.

The Variant type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToChar Interprets the Variant object's value as a Unicode character if the variant type is VT_UI2.
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
Public methodStatic member ToVariant Converts the given variant object to a Variant class object.

Top

Properties

  Name Description
Public property Value Determines the value of this Variant object.
Public property Vt Determines the type of the Variant object.

Top

See Also

Reference

Variant Structure

Microsoft.VisualStudio.Package Namespace