Compartilhar via


IVsProjectFlavorReferences3.QueryAddProjectReferenceEx Method

Definition

Called before this flavored project attempts to make a reference to another project, or before this flavored project attempts to refresh an existing project reference. This flavored project can refuse referencing another project.

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

Parameters

pReferencedProject
Object

[in] The project to be referenced.

queryContext
Int32

[in] The context of how the project is referenced.

pResult
UInt32

[out] The result of the reference query.

pbstreReason
String

[out] An optional reason that can be used with a reference refresh. During a reference refresh, the flavor should not show any dialogs. Instead the flavor can output this optional parameter that is shown in the Error List View.

Returns

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

Applies to