The VSConstants class provides constants that are specific to the integrated development environment (IDE) and that were previously defined only in header files.
Logical and physical views
Editor Factory Flags
Visual Studio errors
| Value |
Description |
| VS_E_BUSY |
A constant returned by interfaces to asynchronous behavior when the object in question in already busy |
| VS_E_INCOMPATIBLEDOCDATA |
An error HRESULT that is specific to Visual Studio for "Incompatible document data". |
| VS_E_PACKAGENOTLOADED |
An error HRESULT that is specific to Visual Studio and that indicates "Package not loaded." |
| VS_E_PROJECTALREADYEXISTS |
An error HRESULT that is specific to Visual Studio and that indicates that the "Project already exists." |
| VS_E_PROJECTMIGRATIONFAILED |
An error HRESULT that is specific to Visual Studio and that indicates "Project configuration failed." |
| VS_E_PROJECTNOTLOADED |
An error HRESULT that is specific to Visual Studio and that indicates "Project not loaded." |
| VS_E_SOLUTIONALREADYOPEN |
An error HRESULT that is specific to Visual Studio and that indicates "Solution already open." |
| VS_E_SOLUTIONNOTOPEN |
An error HRESULT that is specific to Visual Studio and that indicates "Solution not open." |
| VS_E_SPECIFYING_OUTPUT_UNSUPPORTED |
Returned by build interfaces that have parameters for specifying an array from the IVsOutput interface, but the implementation can only apply the method to all outputs. |
| VS_E_UNSUPPORTEDFORMAT |
The CreateEditorInstance method returns this value if the document has a format that cannot be opened in the editor. |
| VS_E_WIZARDBACKBUTTONPRESS |
An HRESULT value that indicates that the user hit the back button in a Visual Studio wizard. |
Visual Studio constants
| Value |
Description |
| VS_S_PROJECTFORWARDED |
An error HRESULT that is specific to Visual Studio and that indicates "Project forwarded." |
| VS_S_TBXMARKER |
A constant that is specific to Visual Studio for a "Toolbox marker." |
| VSM_ENTERMODAL |
A constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method which indicates the beginning of modality. |
| VSM_EXITMODAL |
A constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method that indicates the end of modality. |
| VSM_TOOLBARMETRICSCHANGE |
A constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method indicating that the command bar metrics have changed. |
| VSCOOKIE_NIL |
A constant that is specific to Visual Studio that indicates that a cookie has not been set. |
| VSITEMID.Nil |
A Visual Studio item identifier that represents the absence of a project item. This value is used when there is no current selection. |
| VSITEMID.Root |
A Visual Studio item identifier that represents the root of a project hierarchy and is used to identify the entire hierarchy, as opposed to a single item. |
| VSITEMID.Selection |
A Visual Studio item identifier that represents the currently selected item or items, which can include the root of the hierarchy. |
IVsSelectionEvents
Describes what component of the IDE has just been selected, in an OnElementValueChanged call, for example.
VSSELELEMID
Constants used to indicate a new selection state.
Component selector dialog constants
See also