IVsProjectFlavorReferences.QueryAddProjectReference Method

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)

Syntax

'Declaration
Function QueryAddProjectReference ( _
    pReferencedProject As Object, _
    <OutAttribute> ByRef pbCanAdd As Integer _
) As Integer
int QueryAddProjectReference(
    Object pReferencedProject,
    out int pbCanAdd
)
int QueryAddProjectReference(
    [InAttribute] Object^ pReferencedProject, 
    [OutAttribute] int% pbCanAdd
)
abstract QueryAddProjectReference : 
        pReferencedProject:Object * 
        pbCanAdd:int byref -> int
function QueryAddProjectReference(
    pReferencedProject : Object, 
    pbCanAdd : int
) : int

Parameters

  • pReferencedProject
    Type: Object

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

  • pbCanAdd
    Type: Int32%

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

Return Value

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

.NET Framework Security

See Also

Reference

IVsProjectFlavorReferences Interface

Microsoft.VisualStudio.Shell.Interop Namespace