IVsProjectFlavorReferences::QueryAddProjectReference Method (Object^, Int32)

 

Called before adding a reference to a flavored project. Allows the project to reject a reference.

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

int QueryAddProjectReference(
	Object^ pReferencedProject,
	[OutAttribute] int% pbCanAdd
)

Parameters

pReferencedProject
Type: System::Object^

[in] Pointer to the T:Microsoft.VisualStudio.IUnknown interface of the referenced project (project to be added).

pbCanAdd
Type: System::Int32

[out] Boolean. Set to true if the project can be added; false otherwise.

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: