Partager via


__VSQUERYFLAVORREFERENCESCONTEXT Enum

Definition

Describes the context when querying IVsProjectFlavorReferences3.

public enum class __VSQUERYFLAVORREFERENCESCONTEXT
public enum class __VSQUERYFLAVORREFERENCESCONTEXT
enum __VSQUERYFLAVORREFERENCESCONTEXT
public enum __VSQUERYFLAVORREFERENCESCONTEXT
type __VSQUERYFLAVORREFERENCESCONTEXT = 
Public Enum __VSQUERYFLAVORREFERENCESCONTEXT
Inheritance
__VSQUERYFLAVORREFERENCESCONTEXT

Fields

Name Value Description
VSQUERYFLAVORREFERENCESCONTEXT_AddReference 0

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 1

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 2

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.

Applies to