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: ObjectThe referenced project.
pszReferencedProjectOutput
Type: StringThe output of the referenced project
pOutputValidity
Type: UInt32%The validity, which is one of the __ProjectReferenceOutputValidity values.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.