Freigeben über


IVsProjectFlavorReferences3.QueryCanBeReferencedEx Method

Definition

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

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

Parameters

pReferencingProject
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