VSConstants Class

Definition

Use this class to access common Visual Studio constants.

public ref class VSConstants sealed
public ref class VSConstants sealed
class VSConstants sealed
public sealed class VSConstants
type VSConstants = class
Public NotInheritable Class VSConstants
Inheritance
VSConstants

Fields

ALL

The GUID that represents all objects in the selection container.

AssemblyReferenceProvider_Guid
AssemblyReferenceProvider_string
cmdidToolsOptions

On the Tools menu, the command for options.

CO_E_ACCESSCHECKFAILED
CO_E_ACESINWRONGORDER
CO_E_ACNOTINITIALIZED
CO_E_CANCEL_DISABLED
CO_E_CONVERSIONFAILED
CO_E_DECODEFAILED
CO_E_EXCEEDSYSACLLIMIT
CO_E_FAILEDTOCLOSEHANDLE
CO_E_FAILEDTOCREATEFILE
CO_E_FAILEDTOGENUUID
CO_E_FAILEDTOGETSECCTX
CO_E_FAILEDTOGETTOKENINFO
CO_E_FAILEDTOGETWINDIR
CO_E_FAILEDTOIMPERSONATE
CO_E_FAILEDTOOPENPROCESSTOKEN
CO_E_FAILEDTOOPENTHREADTOKEN
CO_E_FAILEDTOQUERYCLIENTBLANKET
CO_E_FAILEDTOSETDACL
CO_E_INCOMPATIBLESTREAMVERSION
CO_E_INVALIDSID
CO_E_LOOKUPACCNAMEFAILED
CO_E_LOOKUPACCSIDFAILED
CO_E_NETACCESSAPIFAILED
CO_E_NOMATCHINGNAMEFOUND
CO_E_NOMATCHINGSIDFOUND
CO_E_PATHTOOLONG
CO_E_SETSERLHNDLFAILED
CO_E_TRUSTEEDOESNTMATCHCLIENT
CO_E_WRONGTRUSTEENAMESYNTAX
ComReferenceProvider_Guid
ComReferenceProvider_string
ConnectedServiceInstanceReferenceProvider_Guid
ConnectedServiceInstanceReferenceProvider_string
CPDN_SELCHANGED

Sent from a page dialog to Component Selector dialog, informs of selection change on page.

CPDN_SELDBLCLICK

Sent from a page dialog to Component Selector dialog, informs of a double click on a selected item.

CPPM_CLEARSELECTION

Resets and clears selection in list of available components on the Component Selector dialog.

CPPM_GETSELECTION

Retrieves information about selection on the Component Selector dialog.

CPPM_INITIALIZELIST

Initializes the list of available components on the Component Selector dialog.

CPPM_INITIALIZETAB

Initializes a tab with Variant in VSCOMPONENTSELECTORTABINIT on the Component Selector dialog.

CPPM_QUERYCANSELECT

Determine whether the Select button should be enabled on the Component Selector dialog.

CPPM_SETMULTISELECT

Sets the multiple-selection mode on the Component Selector dialog.

DISP_E_ARRAYISLOCKED

An HRESULT that indicates that the array is currently locked.

DISP_E_BADCALLEE

A COM return value.

DISP_E_BADINDEX

A return value that indicates subscript out of range.

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.

DISP_E_BADVARTYPE

One of the method arguments is not a valid variant type.

DISP_E_BUFFERTOOSMALL

A return error that indicates the destination token buffer is too small.

DISP_E_DIVBYZERO

A return error that indicates a divide by zero error.

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.

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.

DISP_E_NONAMEDARGS

A return value indicating that the invoked implementation of IDispatch does not support named arguments.

DISP_E_NOTACOLLECTION

A return value indicating an unexpected argument type.

DISP_E_OVERFLOW

An error that indicates that a value could not be coerced to its expected representation.

DISP_E_PARAMNOTFOUND

A return value that indicates that one of the parameter DISPIDs does not correspond to a parameter on the method.

DISP_E_PARAMNOTOPTIONAL

A return value that indicates that a required parameter was omitted.

DISP_E_TYPEMISMATCH

A return value that indicates that one or more of the parameters could not be coerced.

DISP_E_UNKNOWNINTERFACE

A return value that indicates that the interface identifier passed in riid is not equal to IID_NULL.

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.

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.

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.

E_ACCESSDENIED

A return value that describes a general access denied error.

E_FAIL

Error HRESULT for a generic failure.

E_HANDLE

A return value that indicates an invalid handle.

E_INVALIDARG

Error HRESULT for an invalid argument.

E_NOINTERFACE

Error HRESULT for the request of a not implemented interface.

E_NOTIMPL

Error HRESULT for the call to a method that is not implemented.

E_OUTOFMEMORY

Error HRESULT for out of memory.

E_PENDING

A return value that indicates the availability of an asynchronously accessed interface.

E_POINTER

A return value that indicates that an invalid pointer, usually null, was passed as a parameter.

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.

FileReferenceProvider_Guid
FileReferenceProvider_string
GUID_AppCommand

Identifies commands fired as a result of a WM_APPCOMMAND message received by the main window.

GUID_BrowseFilePage

The Browse File page.

GUID_VsNewProjectPseudoFolder

String resource ID for Visual Studio pseudo-folder.

GUID_VSStandardCommandSet97

This GUID identifies the standard set of commands known by Visual Studio 97 (version 6).

guidCOMPLUSLibrary

The GUID of the COM Plus library.

HIERARCHY_DONTCHANGE

Instructs the selection container not to change the value.

HIERARCHY_DONTPROPAGATE

Instructs the selection container to set the value to null.

IID_IUnknown

GUID of the IUnknown COM interface.

MiscFilesProjectUniqueName
OLE_E_ADVF

A legacy OLE error.

OLE_E_ADVISENOTSUPPORTED

A legacy OLE error.

OLE_E_BLANK

A legacy OLE error.

OLE_E_CANT_BINDTOSOURCE

A legacy OLE error.

OLE_E_CANT_GETMONIKER

A legacy OLE error.

OLE_E_CANTCONVERT

A legacy OLE error.

OLE_E_CLASSDIFF

A legacy OLE error.

OLE_E_ENUM_NOMORE

A legacy OLE error.

OLE_E_INVALIDHWND

A legacy OLE error.

OLE_E_INVALIDRECT

A legacy OLE error.

OLE_E_NOCACHE

A legacy OLE error.

OLE_E_NOCONNECTION

A legacy OLE error.

OLE_E_NOSTORAGE

A legacy OLE error.

OLE_E_NOT_INPLACEACTIVE

A legacy OLE error.

OLE_E_NOTRUNNING

A legacy OLE error.

OLE_E_OLEVERB

A legacy OLE error.

OLE_E_PROMPTSAVECANCELLED

The user was prompted to save but chose the Cancel button from the prompt message box.

OLE_E_STATIC

The cache is for a static object and it already has a cache node.

OLE_E_WRONGCOMPOBJ

The versions of COMPOBJ.DLL and OLE2.DLL on your machine are incompatible with each other.

PlatformReferenceProvider_Guid
PlatformReferenceProvider_string
ProjectReferenceProvider_Guid
ProjectReferenceProvider_string
RPC_E_ACCESS_DENIED
RPC_E_ATTEMPTED_MULTITHREAD
RPC_E_CALL_CANCELED
RPC_E_CALL_COMPLETE
RPC_E_CALL_REJECTED
RPC_E_CANTCALLOUT_AGAIN
RPC_E_CANTCALLOUT_INASYNCCALL
RPC_E_CANTCALLOUT_INEXTERNALCALL
RPC_E_CANTCALLOUT_ININPUTSYNCCALL
RPC_E_CANTPOST_INSENDCALL
RPC_E_CANTTRANSMIT_CALL
RPC_E_CHANGED_MODE
RPC_E_CLIENT_CANTMARSHAL_DATA
RPC_E_CLIENT_CANTUNMARSHAL_DATA
RPC_E_CLIENT_DIED
RPC_E_CONNECTION_TERMINATED
RPC_E_DISCONNECTED
RPC_E_FAULT
RPC_E_FULLSIC_REQUIRED
RPC_E_INVALID_CALLDATA
RPC_E_INVALID_DATA
RPC_E_INVALID_DATAPACKET
RPC_E_INVALID_EXTENSION
RPC_E_INVALID_HEADER
RPC_E_INVALID_IPID
RPC_E_INVALID_OBJECT
RPC_E_INVALID_OBJREF
RPC_E_INVALID_PARAMETER
RPC_E_INVALID_STD_NAME
RPC_E_INVALIDMETHOD
RPC_E_NO_CONTEXT
RPC_E_NO_GOOD_SECURITY_PACKAGES
RPC_E_NO_SYNC
RPC_E_NOT_REGISTERED
RPC_E_OUT_OF_RESOURCES
RPC_E_REMOTE_DISABLED
RPC_E_RETRY
RPC_E_SERVER_CANTMARSHAL_DATA
RPC_E_SERVER_CANTUNMARSHAL_DATA
RPC_E_SERVER_DIED
RPC_E_SERVER_DIED_DNE
RPC_E_SERVERCALL_REJECTED
RPC_E_SERVERCALL_RETRYLATER
RPC_E_SERVERFAULT
RPC_E_SYS_CALL_FAILED
RPC_E_THREAD_NOT_INIT
RPC_E_TIMEOUT
RPC_E_TOO_LATE
RPC_E_UNEXPECTED
RPC_E_UNSECURE_CALL
RPC_E_VERSION_MISMATCH
RPC_E_WRONG_THREAD
RPC_S_CALLPENDING
RPC_S_WAITONTIMER
S_FALSE

HRESULT for false.

S_OK

Generic HRESULT for success.

SELCONTAINER_DONTCHANGE

Instructs the selection container not to change the value.

SELCONTAINER_DONTPROPAGATE

Instructs the selection container to set the value to null.

SELECTED

The GUID that represents selected objects in the selection container.

SharedProjectReferenceProvider_Guid
SharedProjectReferenceProvider_string
SID_SUIHostCommandDispatcher

The name of the Visual Studio service that implements IOleCommandTarget.

SID_SVsGeneralOutputWindowPane

Returns an IID_IVsOutputWindowPane interface of the General output pane in the Visual Studio environment.

SID_SVsToolboxActiveXDataProvider

A Visual Studio toolbox service.

SolutionItemsProjectUniqueName
UNDO_E_CLIENTABORT

Error HRESULT for a client abort.

VS_BUILDABLEPROJECTCFGOPTS_BUILD_ACTIVE_DOCUMENT_ONLY

A flag that requests that only the most recently modified document be built.

VS_BUILDABLEPROJECTCFGOPTS_BUILD_SELECTION_ONLY

A flag that requests that only the selected items be rebuilt.

VS_BUILDABLEPROJECTCFGOPTS_PACKAGE
VS_BUILDABLEPROJECTCFGOPTS_PRIVATE

A flag that is private to a particular implementation.

VS_BUILDABLEPROJECTCFGOPTS_REBUILD

A flag that requests that the project be rebuilt completely, regardless of whether it is up-to-date.

VS_E_BUSY

A constant returned by interfaces to asynchronous behavior when the object in question in already busy.

VS_E_CIRCULARTASKDEPENDENCY
VS_E_INCOMPATIBLECLASSICPROJECT
VS_E_INCOMPATIBLEDOCDATA

A Visual Studio specific error HRESULT for "Incompatible document data".

VS_E_INCOMPATIBLEPROJECT
VS_E_INCOMPATIBLEPROJECT_UNSUPPORTED_OS
VS_E_PACKAGENOTLOADED

A Visual Studio specific error HRESULT that indicates "Package not loaded."

VS_E_PROJECTALREADYEXISTS

A Visual Studio-specific error HRESULT that indicates that the "Project already exists."

VS_E_PROJECTMIGRATIONFAILED

A Visual Studio specific error HRESULT that indicates "Project configuration failed."

VS_E_PROJECTNOTLOADED

A Visual Studio-specific error HRESULT that indicates "Project not loaded."

VS_E_PROMPTREQUIRED
VS_E_SOLUTIONALREADYOPEN

A Visual Studio-specific error HRESULT that indicates "Solution already open."

VS_E_SOLUTIONNOTOPEN

A Visual Studio-specific error HRESULT that indicates "Solution not open."

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.

VS_E_UNSUPPORTEDFORMAT

CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32) 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.

VS_S_INCOMPATIBLEPROJECT
VS_S_PROJECT_ONEWAYUPGRADEREQUIRED
VS_S_PROJECT_SAFEREPAIRREQUIRED
VS_S_PROJECT_UNSAFEREPAIRREQUIRED
VS_S_PROJECTFORWARDED

A Visual Studio-specific error HRESULT that indicates "Project forwarded."

VS_S_TBXMARKER

A Visual Studio-specific constant for a "Toolbox marker."

VSCOOKIE_NIL

A Visual Studio-specific constant that indicates that a cookie has not been set.

VSM_ENTERMODAL

A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage(UInt32, IntPtr, IntPtr) that indicates the beginning of modality.

VSM_EXITMODAL

A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage(UInt32, IntPtr, IntPtr) that indicates the end of modality.

VSM_TOOLBARMETRICSCHANGE

A Visual Studio-specific constant for broadcasting a notification message via OnBroadcastMessage(UInt32, IntPtr, IntPtr) indicating that the command bar metrics have changed.

VSM_VIRTUALMEMORYCRITICAL
VSM_VIRTUALMEMORYLOW
VSUTDCF_DTEEONLY
VSUTDCF_PACKAGE
VSUTDCF_PRIVATE
VSUTDCF_REBUILD

Applies to