UIContextGuids80 Class

 

Provides more GUIDs that are used to identify command contexts.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

System.Object
  Microsoft.VisualStudio.Shell.Interop.UIContextGuids80

public abstract class UIContextGuids80

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCodeWindow

Specifies a context in which a code window currently has focus.

System_CAPS_pubfieldSystem_CAPS_staticDataSourceWindowAutoVisible

Specifies a context in which a data source window is auto visible.

System_CAPS_pubfieldSystem_CAPS_staticDataSourceWindowSupported

Specifies a context in which a data source window is supported by the project.

System_CAPS_pubfieldSystem_CAPS_staticDebugging

Specifies a context in which debugging is active.

System_CAPS_pubfieldSystem_CAPS_staticDesignMode

Specifies a context where the editor is in design mode.

System_CAPS_pubfieldSystem_CAPS_staticDragging

Specifies a context that occurs while dragging items in Solution Explorer.

System_CAPS_pubfieldSystem_CAPS_staticEmptySolution

Specifies a context in which an empty solution has been loaded.

System_CAPS_pubfieldSystem_CAPS_staticFullScreenMode

Specifies a context that is active when Visual Studio is in full screen mode.

System_CAPS_pubfieldSystem_CAPS_staticNoSolution

Specifies a context in which no solution is loaded.

System_CAPS_pubfieldSystem_CAPS_staticNotBuildingAndNotDebugging

Specifies a context in which the solution is not being built or debugged.

System_CAPS_pubfieldSystem_CAPS_staticSolutionBuilding

Specifies a context in which a project or solution is currently being built.

System_CAPS_pubfieldSystem_CAPS_staticSolutionExists

Specifies a context in which a solution has been loaded.

System_CAPS_pubfieldSystem_CAPS_staticSolutionExistsAndNotBuildingAndNotDebugging

Specifies a context in which a solution is loaded and is not being built or debugged.

System_CAPS_pubfieldSystem_CAPS_staticSolutionHasMultipleProjects

Specifies a context in which a loaded solution contains more than one project.

System_CAPS_pubfieldSystem_CAPS_staticSolutionHasSingleProject

Specifies a context in which a loaded solution contains a single project.

System_CAPS_pubfieldSystem_CAPS_staticSolutionOrProjectUpgrading

Specifies a context in which a solution or project is being upgraded.

System_CAPS_pubfieldSystem_CAPS_staticToolboxInitialized

Specifies a context in which the Toolbox is being initialized.

System_CAPS_pubfieldSystem_CAPS_staticWindowsFormsDesigner

Specifies a context in which the Windows Forms designer has focus.

A command context indicates a particular state Visual Studio is in, for example, a solution is building or debugging is active. Multiple contexts can be active at the same time, for example, a solution is loaded and the solution has multiple projects.

As contexts change, notifications are sent out to parties that have registered themselves with the SVsShellMonitorSelection service (see the AdviseSelectionEvents method). It is also possible to request the state of any context using the methods in the IVsMonitorSelection interface, which in turn is obtained from the SVsShellMonitorSelection service.

VSPackages that have user interface (UI) elements can associate those UI elements with particular command contexts. When those contexts become active or inactive, the VSPackage's associated UI elements are automatically activated or deactivated as well. The VSPackage associates UI elements to the command contexts using the Visual Studio Command Table (.vsct) file that is part of the VSPackage. For more information about .vsct files, see Visual Studio Command Table (.Vsct) Files. These command contexts are defined in the context parameter of the VisibilityItem element. For more information, see VisibilityItem Element.

Command contexts are defined in the header files vsshlids.h and vsshell*.h. More information about where they are defined is given in the Remarks sections of the individual contexts.

In addition to new contexts, this collection of contexts contains all of the contexts in the UIContextGuids set.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: