Share via


IVsProjectFlavorReferences.QueryAddProjectReference(Object, Int32) Method

Definition

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

public:
 int QueryAddProjectReference(System::Object ^ pReferencedProject, [Runtime::InteropServices::Out] int % pbCanAdd);
int QueryAddProjectReference(winrt::Windows::Foundation::IInspectable const & pReferencedProject, [Runtime::InteropServices::Out] int & pbCanAdd);
public int QueryAddProjectReference (object pReferencedProject, out int pbCanAdd);
abstract member QueryAddProjectReference : obj * int -> int
Public Function QueryAddProjectReference (pReferencedProject As Object, ByRef pbCanAdd As Integer) As Integer

Parameters

pReferencedProject
Object

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

pbCanAdd
Int32

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

Returns

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

Applies to