IVsSolutionBuildManager2.QueryProjectDependency Method

Checks to see if one project is dependent upon another.

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

Syntax

‘선언
Function QueryProjectDependency ( _
    pHier As IVsHierarchy, _
    pHierDependentOn As IVsHierarchy, _
    <OutAttribute> ByRef pfIsDependentOn As Integer _
) As Integer
‘사용 방법
Dim instance As IVsSolutionBuildManager2
Dim pHier As IVsHierarchy
Dim pHierDependentOn As IVsHierarchy
Dim pfIsDependentOn As Integer
Dim returnValue As Integer

returnValue = instance.QueryProjectDependency(pHier, _
    pHierDependentOn, pfIsDependentOn)
int QueryProjectDependency(
    IVsHierarchy pHier,
    IVsHierarchy pHierDependentOn,
    out int pfIsDependentOn
)
int QueryProjectDependency(
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] IVsHierarchy^ pHierDependentOn, 
    [OutAttribute] int% pfIsDependentOn
)
abstract QueryProjectDependency : 
        pHier:IVsHierarchy * 
        pHierDependentOn:IVsHierarchy * 
        pfIsDependentOn:int byref -> int 
function QueryProjectDependency(
    pHier : IVsHierarchy, 
    pHierDependentOn : IVsHierarchy, 
    pfIsDependentOn : int
) : int

Parameters

  • pfIsDependentOn
    Type: System.Int32%
    [out] The flag is set true if the dependency relationship exists, otherwise it is set to false.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionBuildManager2::QueryProjectDependency(
   [in] IVsHierarchy *pHier,
   [in] IVsHierarchy *pHierDependentOn,
   [out] BOOL *pfIsDependentOn
);

This method can be used to check if one project is dependent on another project. *pfIsDependentOn is true if pHier depends on pHierDependentOn.

참고

You should call CalculateProjectDependencies if there is any uncertainty that the dependencies are up-to-date.

.NET Framework Security

See Also

Reference

IVsSolutionBuildManager2 Interface

IVsSolutionBuildManager2 Members

Microsoft.VisualStudio.Shell.Interop Namespace