Partager via


__VSQUERYFLAVORREFERENCESCONTEXT Enumeration

Describes the context when querying IVsProjectFlavorReferences3.

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

Syntax

'Declaration
Public Enumeration __VSQUERYFLAVORREFERENCESCONTEXT
public enum __VSQUERYFLAVORREFERENCESCONTEXT
public enum class __VSQUERYFLAVORREFERENCESCONTEXT
type __VSQUERYFLAVORREFERENCESCONTEXT
public enum __VSQUERYFLAVORREFERENCESCONTEXT

Members

Member name Description
VSQUERYFLAVORREFERENCESCONTEXT_AddReference Indicates the project system is attempting to add a new project reference. Normally this happens when a user attempts to add a new project reference through the Reference Manager dialog. The flavor can deny the project reference and show the proper error dialog to prompt the user.
VSQUERYFLAVORREFERENCESCONTEXT_LoadReference Indicates the project system is loading the references, which happens when loading a project. As the project is not loaded yet, if the flavor denies the project reference, the project will fail to load. Therefore the flavor should allow any project reference for this context, in order to unblock project loading. The flavor can deny the invalid project reference later when the context is VSQUERYFLAVORREFERENCESCONTEXT.
VSQUERYFLAVORREFERENCESCONTEXT_RefreshReference Indicates the project system is attempting to refresh an existing project reference. This can occur in several scenarios. For example, when the project is first loaded, the project reference is unresolved, so the project system needs to refresh the reference to get it resolved. Additionally, when the reference project is changed, this flavored project also needs to refresh its project reference. The flavor should suppress any UI for this context to avoid confusing the user; instead the flavor can set a proper error message in the output parameter pbstreReason to show the error message in the Error List View.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace