Dela via


IVsProjectFlavorReferences2.QueryCheckIsProjectReferenceOutputValid Method

Called before adding a project reference. Allows the flavor to accept or reject a project reference based on the referenced project output path.

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

Syntax

'Declaration
Function QueryCheckIsProjectReferenceOutputValid ( _
    pReferencedProject As Object, _
    pszReferencedProjectOutput As String, _
    <OutAttribute> ByRef pOutputValidity As UInteger _
) As Integer
int QueryCheckIsProjectReferenceOutputValid(
    Object pReferencedProject,
    string pszReferencedProjectOutput,
    out uint pOutputValidity
)
int QueryCheckIsProjectReferenceOutputValid(
    [InAttribute] Object^ pReferencedProject, 
    [InAttribute] String^ pszReferencedProjectOutput, 
    [OutAttribute] unsigned int% pOutputValidity
)
abstract QueryCheckIsProjectReferenceOutputValid : 
        pReferencedProject:Object * 
        pszReferencedProjectOutput:string * 
        pOutputValidity:uint32 byref -> int
function QueryCheckIsProjectReferenceOutputValid(
    pReferencedProject : Object, 
    pszReferencedProjectOutput : String, 
    pOutputValidity : uint
) : int

Parameters

  • pReferencedProject
    Type: Object

    The referenced project.

  • pszReferencedProjectOutput
    Type: String

    The output of the referenced project

Return Value

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

Remarks

This function allows the flavored project to override the reference validity check performed by the base project, and occurs prior to QueryAddProjectReference call.

.NET Framework Security

See Also

Reference

IVsProjectFlavorReferences2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace