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

‘선언
Function QueryAddProjectReference ( _
    pReferencedProject As Object, _
    <OutAttribute> ByRef pbCanAdd As Integer _
) As Integer
‘사용 방법
Dim instance As IVsProjectFlavorReferences
Dim pReferencedProject As Object
Dim pbCanAdd As Integer
Dim returnValue As Integer

returnValue = instance.QueryAddProjectReference(pReferencedProject, _
    pbCanAdd)
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: System.Object
    [in] Pointer to the 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.

.NET Framework Security

See Also

Reference

IVsProjectFlavorReferences Interface

IVsProjectFlavorReferences Members

Microsoft.VisualStudio.Shell.Interop Namespace