Share via


IVarInfo Interface

Definition

Provides information about the properties of the specified variable.

public interface class IVarInfo
public interface class IVarInfo
__interface IVarInfo
[System.Runtime.InteropServices.Guid("1E5DF92F-4FC6-4808-AB39-9C914ECF2B8B")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IVarInfo
[<System.Runtime.InteropServices.Guid("1E5DF92F-4FC6-4808-AB39-9C914ECF2B8B")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IVarInfo = interface
Public Interface IVarInfo
Attributes

Remarks

The IVarInfo object controls information about the properties contained in the specified variable, such as its name and dispatch identifier, any associated help string, its type and variant type, and whether it is a VTS variable. You can display a variable's properties in a custom wizard that adds variables to a project. Such a wizard must understand the parts of the variable and parse them within the wizard. For an example of a Visual Studio wizard that uses IVarInfo, see Add Member Variable Wizard.

Note

See How to: Interpret Visual C++ Wizard Model Examples for more information about how properties and methods are called in both the HTML and the default.js files of a custom wizard.

Properties

DispID

Gets or sets the variable or function dispatch ID.

HelpString

Gets or sets the variable or function Help string.

Name

Gets or sets the name of the object.

Type

Gets or sets the variable's type.

VariantType

Gets or sets the variable's variant type.

VTSType

Gets or sets the VTS type of the variable.

Applies to