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

 

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.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

int QueryCanBeReferencedEx(
	Object^ pReferencingProject,
	int queryContext,
	[OutAttribute] unsigned int% pResult,
	[OutAttribute] String^% pbstreReason
)

Parameters

pReferencingProject
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: