Dela via


IVsProjectFlavorReferences3.QueryCanBeReferencedEx Method

Called before another project attempts to make a reference to this flavored project, or before another project attempts to refresh an existing project reference to this flavored project. This flavored project can refuse being referenced.

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

Syntax

'Declaration
Function QueryCanBeReferencedEx ( _
    pReferencingProject As Object, _
    queryContext As Integer, _
    <OutAttribute> ByRef pResult As UInteger, _
    <OutAttribute> ByRef pbstreReason As String _
) As Integer
int QueryCanBeReferencedEx(
    Object pReferencingProject,
    int queryContext,
    out uint pResult,
    out string pbstreReason
)
int QueryCanBeReferencedEx(
    [InAttribute] Object^ pReferencingProject, 
    [InAttribute] int queryContext, 
    [OutAttribute] unsigned int% pResult, 
    [OutAttribute] String^% pbstreReason
)
abstract QueryCanBeReferencedEx : 
        pReferencingProject:Object * 
        queryContext:int * 
        pResult:uint32 byref * 
        pbstreReason:string byref -> int
function QueryCanBeReferencedEx(
    pReferencingProject : Object, 
    queryContext : int, 
    pResult : uint, 
    pbstreReason : String
) : int

Parameters

  • pReferencingProject
    Type: Object

    [in] The project to be referenced.

  • queryContext
    Type: Int32

    [in] The context of how the project is referenced.

  • pResult
    Type: UInt32%

    [out] The result of the reference query.

  • pbstreReason
    Type: String%

    [out] An optional reason that can be used with a reference refresh. During a reference refresh, the flavor should not show any dialogs. Instead the flavor can output this optional parameter that is shown in the Error List View.

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

IVsProjectFlavorReferences3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace