Bagikan melalui


Globals Members

Include Protected Members
Include Inherited Members

The Globals object is a cache for storing data for the duration of each session of the Visual Studio environment, as well as across sessions using the VariablePersists property.

The Globals type exposes the following members.

Properties

 

Name

Description

Public property

DTE

Gets the top-level extensibility object.

Public property

Parent

Gets the immediate parent object of a Globals object.

Public property

VariableExists

Returns whether the specified variable exists.

Public property

VariableNames

Gets a list of all current global variable names.

Public property

VariablePersists

The VariablePersists property applies to several types of Globals objects. For the DTE.Globals object, it gets or sets whether the variable is retained by the environment and is available between sessions of the environment. For the Solution.Globals object, it gets or sets whether the variable is retained by the environment and is available between sessions of the environment and between loading and unloading of a solution. For the Project.Globals object, it gets or sets whether the variable is retained by the environment in the project file.

Public property

VariableValue

Returns or sets the variable with the specified name.

Top

See Also

Reference

Globals Interface

EnvDTE Namespace