Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

vcContextGuids Class

Contains context GUIDs, each of which represents a given IDE state, such as if a Visual C++ project is open, or the Visual C++ editor is open. This enumeration is passed as an argument to AddNamedCommand and AddNamedCommand2.


Namespace:  Microsoft.VisualStudio.VCProject
Assembly:  Microsoft.VisualStudio.VCProject (in Microsoft.VisualStudio.VCProject.dll)

public static class vcContextGuids

The vcContextGuids type exposes the following members.

Public fieldStatic membervcContextGuidVCEditorRepresents whether Visual C++ code is open in the editor.
Public fieldStatic membervcContextGuidVCProjectRepresents whether a Visual C++ project is present in the IDE.

The command will be visible if the enumeration's related context GUID is active. If it is not active, then the command will not be visible.

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