Compartir a través de


IVsProjectFlavorReferences.QueryCanBeReferenced Method

Called before another project attempts to make a reference to this flavored project. The project can refuse being referenced.

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

Syntax

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

Parameters

  • pReferencingProject
    Type: Object

    [in] Pointer to the IUnknown interface of the project wanting to reference this project.

  • pbAllowReferenced
    Type: Int32%

    [out] Pointer to a Boolean. Set to true if the other project can reference this project. Otherwise, set to false.

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