Partager via


IVsProjectFlavorReferences2.QueryCheckIsProjectReferenceOutputValid Method

Definition

Called before adding a project reference. Allows the flavor to accept or reject a project reference based on the referenced project output path.

public:
 int QueryCheckIsProjectReferenceOutputValid(System::Object ^ pReferencedProject, System::String ^ pszReferencedProjectOutput, [Runtime::InteropServices::Out] System::UInt32 % pOutputValidity);
int QueryCheckIsProjectReferenceOutputValid(winrt::Windows::Foundation::IInspectable const & pReferencedProject, std::wstring const & pszReferencedProjectOutput, [Runtime::InteropServices::Out] unsigned int & pOutputValidity);
public int QueryCheckIsProjectReferenceOutputValid (object pReferencedProject, string pszReferencedProjectOutput, out uint pOutputValidity);
abstract member QueryCheckIsProjectReferenceOutputValid : obj * string * uint32 -> int
Public Function QueryCheckIsProjectReferenceOutputValid (pReferencedProject As Object, pszReferencedProjectOutput As String, ByRef pOutputValidity As UInteger) As Integer

Parameters

pReferencedProject
Object

The referenced project.

pszReferencedProjectOutput
String

The output of the referenced project

pOutputValidity
UInt32

The validity, which is one of the __ProjectReferenceOutputValidity values.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This function allows the flavored project to override the reference validity check performed by the base project, and occurs prior to QueryAddProjectReference call.

Applies to