IVsProjectFlavorReferences3::QueryAddProjectReferenceEx Method (Object^, Int32, UInt32, String^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
int QueryAddProjectReferenceEx( Object^ pReferencedProject, int queryContext, [OutAttribute] unsigned int% pResult, [OutAttribute] String^% pbstreReason )
Parameters
- pReferencedProject
-
Type:
System::Object^
[in] The project to be referenced.
- queryContext
-
Type:
System::Int32
[in] The context of how the project is referenced.
- pResult
-
Type:
System::UInt32
[out] The result of the reference query.
- pbstreReason
-
Type:
System::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.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: