IVsProjectFlavorReferences3::QueryAddProjectReferenceEx Method (Object^, Int32, UInt32, String^)

 

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.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

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

Return to top
Show: