UIContextGuids100 Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides more GUIDs that are used to identify command contexts.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Public NotInheritable Class UIContextGuids100
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class UIContextGuids100
public ref class UIContextGuids100 abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type UIContextGuids100 = class end
public final class UIContextGuids100
Remarks
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.
This collection of contexts contains all of the contexts in UIContextGuids and UIContextGuids80.
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.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.Interop.UIContextGuids100
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.