IVsReferenceManager.QueryCanReferenceProject Method
Allows a client to determine if one project can reference another based on the Visual Studio default reference algorithm.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Syntax
'Declaration
Function QueryCanReferenceProject ( _
pReferencing As IVsHierarchy, _
pReferenced As IVsHierarchy _
) As UInteger
uint QueryCanReferenceProject(
IVsHierarchy pReferencing,
IVsHierarchy pReferenced
)
unsigned int QueryCanReferenceProject(
[InAttribute] IVsHierarchy^ pReferencing,
[InAttribute] IVsHierarchy^ pReferenced
)
abstract QueryCanReferenceProject :
pReferencing:IVsHierarchy *
pReferenced:IVsHierarchy -> uint32
function QueryCanReferenceProject(
pReferencing : IVsHierarchy,
pReferenced : IVsHierarchy
) : uint
Parameters
pReferencing
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] The project that is doing the referencing.
pReferenced
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] The project being referenced.
Return Value
Type: UInt32
The result of the query.
.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.