Bagikan melalui


VSConstants Class

Use this class to access common Visual Studio constants.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.VSConstants

Namespace:  Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public NotInheritable Class VSConstants
public sealed class VSConstants
public ref class VSConstants sealed
[<Sealed>]
type VSConstants =  class end
public final class VSConstants

The VSConstants type exposes the following members.

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member ALL The GUID that represents all objects in the selection container.
Public fieldStatic member AssemblyReferenceProvider_Guid
Public fieldStatic member AssemblyReferenceProvider_string
Public fieldStatic member BuildOrder Use this legacy GUID to access a specific output pane.
Public fieldStatic member BuildOutput Use BuildOutputPane_guid.
Public fieldStatic member CEF_CLONEFILE An obsolete flag combined bitwise as the first parameter of the method CreateEditorInstance.
Public fieldStatic member CEF_OPENASNEW Indicates that the editor factory should perform necessary corrections.
Public fieldStatic member CEF_OPENFILE Indicates that the editor factory should open the file.
Public fieldStatic member CEF_SILENT Indicates that the editor factory should create the editor silently.
Public fieldStatic member CLSID_ComPlusOnlyDebugEngine The GUID of the debug engine for COM Plus.
Public fieldStatic member CLSID_HtmDocData The document's data is HTML format.
Public fieldStatic member CLSID_HtmedPackage The GUID of the HTML package.
Public fieldStatic member CLSID_HtmlLanguageService GUID of the HTML language service.
Public fieldStatic member CLSID_MiscellaneousFilesProject CLSID for Miscellaneous Files project.
Public fieldStatic member CLSID_SolutionItemsProject Project type CLSID for Solution Items project.
Public fieldStatic member CLSID_VsCfgProviderEventsHelper Provide notifications when configuration-related events are fired. Implemented by the environment.
Public fieldStatic member CLSID_VsDocOutlinePackage The CLSID of the document outline package window.
Public fieldStatic member CLSID_VsEnvironmentPackage The CLSID for Visual Studio Environment Package.
Public fieldStatic member CLSID_VsTaskList The CLSID for Visual Studio Environment Task List.
Public fieldStatic member CLSID_VsTaskListPackage The CLSID for Visual Studio Environment Task List Package.
Public fieldStatic member CLSID_VsUIHierarchyWindow The CLSID for Visual Studio Environment Hierarchy Window.
Public fieldStatic member cmdidToolsOptions On the Tools menu, the command for options.
Public fieldStatic member ComReferenceProvider_Guid
Public fieldStatic member ComReferenceProvider_string
Public fieldStatic member CPDN_SELCHANGED Sent from a page dialog to Component Selector dialog, informs of selection change on page.
Public fieldStatic member CPDN_SELDBLCLICK Sent from a page dialog to Component Selector dialog, informs of a double click on a selected item.
Public fieldStatic member CPPM_CLEARSELECTION Resets and clears selection in list of available components on the Component Selector dialog.
Public fieldStatic member CPPM_GETSELECTION Retrieves information about selection on the Component Selector dialog.
Public fieldStatic member CPPM_INITIALIZELIST Initializes the list of available components on the Component Selector dialog.
Public fieldStatic member CPPM_INITIALIZETAB Initializes a tab with Variant in VSCOMPONENTSELECTORTABINIT on the Component Selector dialog.
Public fieldStatic member CPPM_QUERYCANSELECT Determine whether the Select button should be enabled on the Component Selector dialog.
Public fieldStatic member CPPM_SETMULTISELECT Sets the multiple-selection mode on the Component Selector dialog.
Public fieldStatic member DebugOutput Use this legacy GUID to access a specific output pane.
Public fieldStatic member DISP_E_ARRAYISLOCKED An HRESULT that indicates that the array is currently locked.
Public fieldStatic member DISP_E_BADCALLEE A COM return value.
Public fieldStatic member DISP_E_BADINDEX A return value that indicates subscript out of range.
Public fieldStatic member DISP_E_BADPARAMCOUNT An error return value that indicates that the number of elements provided to the method is different from the number of arguments accepted by the method.
Public fieldStatic member DISP_E_BADVARTYPE One of the method arguments is not a valid variant type.
Public fieldStatic member DISP_E_BUFFERTOOSMALL A return error that indicates the destination token buffer is too small.
Public fieldStatic member DISP_E_DIVBYZERO A return error that indicates a divide by zero error.
Public fieldStatic member DISP_E_EXCEPTION This return value indicates that the call generated an exception. The usual implementation is to specify that an argument of the method that returned this error is a pointer to a structure that contains exception information.
Public fieldStatic member DISP_E_MEMBERNOTFOUND A return value indicating that the requested member does not exist, or the call to Invoke tried to set the value of a read-only property.
Public fieldStatic member DISP_E_NONAMEDARGS A return value indicating that the invoked implementation of IDispatch does not support named arguments.
Public fieldStatic member DISP_E_NOTACOLLECTION A return value indicating an unexpected argument type.
Public fieldStatic member DISP_E_OVERFLOW An error that indicates that a value could not be coerced to its expected representation.
Public fieldStatic member DISP_E_PARAMNOTFOUND A return value that indicates that one of the parameter DISPIDs does not correspond to a parameter on the method.
Public fieldStatic member DISP_E_PARAMNOTOPTIONAL A return value that indicates that a required parameter was omitted.
Public fieldStatic member DISP_E_TYPEMISMATCH A return value that indicates that one or more of the parameters could not be coerced.
Public fieldStatic member DISP_E_UNKNOWNINTERFACE A return value that indicates that the interface identifier passed in riid is not equal to IID_NULL.
Public fieldStatic member DISP_E_UNKNOWNLCID A return value that indicates that the member being invoked interprets string arguments according to the Locale ID (LCID), and the LCID is not recognized. If the LCID is not needed to interpret arguments, this error should not be returned.
Public fieldStatic member DISP_E_UNKNOWNNAME A return value that indicates that one or more of the names were not known. The returned DISPIDs contain DISPID_UNKNOWN for each entry that corresponds to an unknown name.
Public fieldStatic member DocumentFrame A constant referenced in selection events to describe which component of the shell has just been selected.
Public fieldStatic member E_ABORT A return value that may indicate an explicit cancellation action or some process that could no longer proceed after (for instance) both undo and rollback failed.
Public fieldStatic member E_ACCESSDENIED A return value that describes a general access denied error.
Public fieldStatic member E_FAIL Error HRESULT for a generic failure.
Public fieldStatic member E_HANDLE A return value that indicates an invalid handle.
Public fieldStatic member E_INVALIDARG Error HRESULT for an invalid argument.
Public fieldStatic member E_NOINTERFACE Error HRESULT for the request of a not implemented interface.
Public fieldStatic member E_NOTIMPL Error HRESULT for the call to a method that is not implemented.
Public fieldStatic member E_OUTOFMEMORY Error HRESULT for out of memory.
Public fieldStatic member E_PENDING A return value that indicates the availability of an asynchronously accessed interface.
Public fieldStatic member E_POINTER A return value that indicates that an invalid pointer, usually nulla null reference (Nothing in Visual Basic), was passed as a parameter.
Public fieldStatic member E_UNEXPECTED A return value that indicates that the result of the method call is outside of the error cases the client code can readily handle.
Public fieldStatic member FileReferenceProvider_Guid
Public fieldStatic member FileReferenceProvider_string
Public fieldStatic member GUID_AppCommand Identifies commands fired as a result of a WM_APPCOMMAND message received by the main window.
Public fieldStatic member GUID_BrowseFilePage The Browse File page.
Public fieldStatic member GUID_BuildOutputWindowPane This constant represents the GUID for the interface IVsOutputWindowPane which is implemented by the shell's OutputWindow tool window. It is used by client code to display messages in the output window.
Public fieldStatic member GUID_COMClassicPage A Visual Studio component selector page GUID.
Public fieldStatic member GUID_COMPlusPage A Visual Studio component selector page GUID.
Public fieldStatic member GUID_DefaultEditor A common system defined editor GUID.
Public fieldStatic member GUID_ExternalEditor A common editor GUID.
Public fieldStatic member GUID_HTMEDAllowExistingDocData GUID used to mark a VsTextBuffer in order to tell to the HTML editor factory to accept preexisting doc data.
Public fieldStatic member GUID_HtmlEditorFactory GUID of the HTML editor factory.
Public fieldStatic member GUID_ItemType_PhysicalFile A GUID constant used to specify that the type is a physical file on disk or the Web.
Public fieldStatic member GUID_ItemType_PhysicalFolder A GUID constant used to specify that the type is a physical folder on disk or the Web.
Public fieldStatic member GUID_ItemType_SubProject A GUID constant used to specify that the type is a nested hierarchy project.
Public fieldStatic member GUID_ItemType_VirtualFolder A GUID constant used to specify that the type is a non-physical folder.
Public fieldStatic member GUID_OutWindowDebugPane A GUID constant used to specify the debug pane inside the output window.
Public fieldStatic member GUID_OutWindowGeneralPane The GUID of the pseudo service that returns the General output pane SID_SVsGeneralOutputWindowPane in the VS environment.
Public fieldStatic member GUID_ProjectDesignerEditor The project designer GUID.
Public fieldStatic member GUID_SolutionPage A Visual Studio component selector page GUID.
Public fieldStatic member GUID_TextEditorFactory GUID of the Text editor factory.
Public fieldStatic member GUID_VS_DEPTYPE_BUILD_PROJECT The GUID for dependencies that are build projects.
Public fieldStatic member GUID_VsNewProjectPseudoFolder String resource ID for Visual Studio pseudo-folder.
Public fieldStatic member GUID_VSStandardCommandSet97 This GUID identifies the standard set of commands known by Visual Studio 97 (version 6).
Public fieldStatic member GUID_VsTaskListViewAll The GUID for the highest abstraction task lists.
Public fieldStatic member GUID_VsTaskListViewCheckedTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewCommentTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewCompilerTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewCurrentFileTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewHTMLTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewShortcutTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewUncheckedTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsTaskListViewUserTasks The GUID for a certain flavor or task lists.
Public fieldStatic member GUID_VsUIHierarchyWindowCmds A GUID that defines the command group related to the hierarchy window.
Public fieldStatic member guidCOMPLUSLibrary The GUID of the COM Plus library.
Public fieldStatic member HIERARCHY_DONTCHANGE Instructs the selection container not to change the value.
Public fieldStatic member HIERARCHY_DONTPROPAGATE Instructs the selection container to set the value to nulla null reference (Nothing in Visual Basic).
Public fieldStatic member IID_IUnknown GUID of the IUnknown COM interface.
Public fieldStatic member LOGVIEWID_Any Any defined view for document data.
Public fieldStatic member LOGVIEWID_Code GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to the OpenStandardEditor method to get the Open With dialog, in this case on possible Code Views.
Public fieldStatic member LOGVIEWID_Debugging GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to the OpenStandardEditor method to get the Open With dialog, in this case populated with possible LOGVIEWID_Debugging debugging views which map to the same view as LOGVIEWID_Code.
Public fieldStatic member LOGVIEWID_Designer GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to the OpenStandardEditor method to get the Open With dialog, in this case to View Form designer views.
Public fieldStatic member LOGVIEWID_Primary GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to OpenStandardEditor method to get the Open With dialog, in this case the default/primary view of the editor factory.
Public fieldStatic member LOGVIEWID_TextView GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to OpenStandardEditor method to get the Open With dialog, in this for a document or data text editor view.
Public fieldStatic member LOGVIEWID_UserChooseView GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to OpenStandardEditor method which prompts the user to choose which user-defined view to use.
Public fieldStatic member MiscFilesProjectUniqueName
Public fieldStatic member OLE_E_ADVF A legacy OLE error.
Public fieldStatic member OLE_E_ADVISENOTSUPPORTED A legacy OLE error.
Public fieldStatic member OLE_E_BLANK A legacy OLE error.
Public fieldStatic member OLE_E_CANT_BINDTOSOURCE A legacy OLE error.
Public fieldStatic member OLE_E_CANT_GETMONIKER A legacy OLE error.
Public fieldStatic member OLE_E_CANTCONVERT A legacy OLE error.
Public fieldStatic member OLE_E_CLASSDIFF A legacy OLE error.
Public fieldStatic member OLE_E_ENUM_NOMORE A legacy OLE error.
Public fieldStatic member OLE_E_INVALIDHWND A legacy OLE error.
Public fieldStatic member OLE_E_INVALIDRECT A legacy OLE error.
Public fieldStatic member OLE_E_NOCACHE A legacy OLE error.
Public fieldStatic member OLE_E_NOCONNECTION A legacy OLE error.
Public fieldStatic member OLE_E_NOSTORAGE A legacy OLE error.
Public fieldStatic member OLE_E_NOT_INPLACEACTIVE A legacy OLE error.
Public fieldStatic member OLE_E_NOTRUNNING A legacy OLE error.
Public fieldStatic member OLE_E_OLEVERB A legacy OLE error.
Public fieldStatic member OLE_E_PROMPTSAVECANCELLED The user was prompted to save but chose the Cancel button from the prompt message box.
Public fieldStatic member OLE_E_STATIC The cache is for a static object and it already has a cache node.
Public fieldStatic member OLE_E_WRONGCOMPOBJ The versions of COMPOBJ.DLL and OLE2.DLL on your machine are incompatible with each other.
Public fieldStatic member PlatformReferenceProvider_Guid
Public fieldStatic member PlatformReferenceProvider_string
Public fieldStatic member ProjectReferenceProvider_Guid
Public fieldStatic member ProjectReferenceProvider_string
Public fieldStatic member PropertyBrowserSID Describes what component of the shell has just been selected.
Public fieldStatic member S_FALSE HRESULT for false.
Public fieldStatic member S_OK Generic HRESULT for success.
Public fieldStatic member SELCONTAINER_DONTCHANGE Instructs the selection container not to change the value.
Public fieldStatic member SELCONTAINER_DONTPROPAGATE Instructs the selection container to set the value to nulla null reference (Nothing in Visual Basic).
Public fieldStatic member SELECTED The GUID that represents selected objects in the selection container.
Public fieldStatic member SID_SUIHostCommandDispatcher The name of the Visual Studio service that implements IOleCommandTarget.
Public fieldStatic member SID_SVsGeneralOutputWindowPane Returns an IID_IVsOutputWindowPane interface of the General output pane in the Visual Studio environment.
Public fieldStatic member SID_SVsToolboxActiveXDataProvider A Visual Studio toolbox service.
Public fieldStatic member SolutionItemsProjectUniqueName
Public fieldStatic member StartupProject A constant referenced in selection events to describe which component of the shell has just been selected, in this case in response to project startup.
Public fieldStatic member UICONTEXT_CodeWindow Specifies a UI context in which the code window is active.
Public fieldStatic member UICONTEXT_Debugging Specifies The UI context for debugging mode.
Public fieldStatic member UICONTEXT_DesignMode Specifies the UI context for design mode.
Public fieldStatic member UICONTEXT_Dragging Specifies a UI context in which a drag/drop operation is active.
Public fieldStatic member UICONTEXT_EmptySolution Specifies a UI context in which an empty solution is active.
Public fieldStatic member UICONTEXT_FullScreenMode Specifies a UI context in which the Full Screen mode of the view is active.
Public fieldStatic member UICONTEXT_NoSolution Specifies a UI context in which no solution is open.
Public fieldStatic member UICONTEXT_SolutionBuilding Specifies a UI context in which the solution is being built.
Public fieldStatic member UICONTEXT_SolutionExists Specifies a UI context in which a solution exists.
Public fieldStatic member UICONTEXT_SolutionHasAppContainerProject
Public fieldStatic member UICONTEXT_SolutionHasMultipleProjects Specifies a UI context in which a solution is open and has multiple projects loaded.
Public fieldStatic member UICONTEXT_SolutionHasSingleProject Specifies a UI context in which a solution with a single project is open.
Public fieldStatic member UNDO_E_CLIENTABORT Error HRESULT for a client abort.
Public fieldStatic member UndoManager A constant referenced in selection events to describe which component of the shell has just been selected.
Public fieldStatic member UserContext A constant referenced in selection events to describe which component of the shell has just been selected.
Public fieldStatic member VS_BUILDABLEPROJECTCFGOPTS_BUILD_ACTIVE_DOCUMENT_ONLY A flag that requests that only the most recently modified document be built.
Public fieldStatic member VS_BUILDABLEPROJECTCFGOPTS_BUILD_SELECTION_ONLY A flag that requests that only the selected items be rebuilt.
Public fieldStatic member VS_BUILDABLEPROJECTCFGOPTS_PACKAGE
Public fieldStatic member VS_BUILDABLEPROJECTCFGOPTS_PRIVATE A flag that is private to a particular implementation.
Public fieldStatic member VS_BUILDABLEPROJECTCFGOPTS_REBUILD A flag that requests that the project be rebuilt completely, regardless of whether it is up-to-date.
Public fieldStatic member VS_E_BUSY A constant returned by interfaces to asynchronous behavior when the object in question in already busy.
Public fieldStatic member VS_E_CIRCULARTASKDEPENDENCY
Public fieldStatic member VS_E_INCOMPATIBLECLASSICPROJECT
Public fieldStatic member VS_E_INCOMPATIBLEDOCDATA A Visual Studio specific error HRESULT for "Incompatible document data".
Public fieldStatic member VS_E_INCOMPATIBLEPROJECT
Public fieldStatic member VS_E_INCOMPATIBLEPROJECT_UNSUPPORTED_OS
Public fieldStatic member VS_E_PACKAGENOTLOADED A Visual Studio specific error HRESULT that indicates "Package not loaded."
Public fieldStatic member VS_E_PROJECTALREADYEXISTS A Visual Studio-specific error HRESULT that indicates that the "Project already exists."
Public fieldStatic member VS_E_PROJECTMIGRATIONFAILED A Visual Studio specific error HRESULT that indicates "Project configuration failed."
Public fieldStatic member VS_E_PROJECTNOTLOADED A Visual Studio-specific error HRESULT that indicates "Project not loaded."
Public fieldStatic member VS_E_PROMPTREQUIRED
Public fieldStatic member VS_E_SOLUTIONALREADYOPEN A Visual Studio-specific error HRESULT that indicates "Solution already open."
Public fieldStatic member VS_E_SOLUTIONNOTOPEN A Visual Studio-specific error HRESULT that indicates "Solution not open."
Public fieldStatic member VS_E_SPECIFYING_OUTPUT_UNSUPPORTED Returned by build interfaces that have parameters for specifying an array of IVsOutput's but the implementation can only apply the method to all outputs.
Public fieldStatic member VS_E_UNSUPPORTEDFORMAT CreateEditorInstance returns this value if the document has a format that cannot be opened in the editor.
Public fieldStatic member VS_E_WIZARDBACKBUTTONPRESS An HRESULT value that indicates that the user hit the back button in a Visual Studio wizard.
Public fieldStatic member VS_S_INCOMPATIBLEPROJECT
Public fieldStatic member VS_S_PROJECT_ONEWAYUPGRADEREQUIRED
Public fieldStatic member VS_S_PROJECT_SAFEREPAIRREQUIRED
Public fieldStatic member VS_S_PROJECT_UNSAFEREPAIRREQUIRED
Public fieldStatic member VS_S_PROJECTFORWARDED A Visual Studio-specific error HRESULT that indicates "Project forwarded."
Public fieldStatic member VS_S_TBXMARKER A Visual Studio-specific constant for a "Toolbox marker."
Public fieldStatic member VSCOOKIE_NIL A Visual Studio-specific constant that indicates that a cookie has not been set.
Public fieldStatic member 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.
Public fieldStatic member 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.
Public fieldStatic member VSITEMID_SELECTION A Visual Studio item identifier that represents the currently selected item or items, which can include the root of the hierarchy.
Public fieldStatic member VSM_ENTERMODAL A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage that indicates the beginning of modality.
Public fieldStatic member VSM_EXITMODAL A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage that indicates the end of modality.
Public fieldStatic member VSM_TOOLBARMETRICSCHANGE A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage indicating that the command bar metrics have changed.
Public fieldStatic member VsStd11
Public fieldStatic member VsStd2010 Identifies commands in Visual Studio 2010.
Public fieldStatic member VSStd2K GUID for the Windows 2000 command set. This is a set of standard editor commands.
Public fieldStatic member VSUTDCF_DTEEONLY
Public fieldStatic member VSUTDCF_PACKAGE
Public fieldStatic member VSUTDCF_PRIVATE
Public fieldStatic member VSUTDCF_REBUILD
Public fieldStatic member WindowFrame A constant referenced in selection events to describe which component of the shell has just been selected.

Top

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.

See Also

Reference

Microsoft.VisualStudio Namespace