IVsAsynchOpenFromScc.IsLoadingContent 方法

此方法确定加载是否为加载的解决方案或项目完成异步。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function IsLoadingContent ( _
    pHierarchy As IVsHierarchy, _
    <OutAttribute> ByRef pfIsLoading As Integer _
) As Integer
int IsLoadingContent(
    IVsHierarchy pHierarchy,
    out int pfIsLoading
)

参数

  • pfIsLoading
    类型:System.Int32%
    [out] 返回非零 (TRUE) ,如果层次结构的内容从源代码管理仍会加载。否则,返回零 (0)FALSE),指示加载完成。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl

HRESULT IsLoadingContent(
   [in] IVsHierarchy *pHierarchy,
   [out] BOOL *pfIsLoading
);

项目的另一种方法可以确定加载是否已完成 IVsAsynchOpenFromSccProjectEvents 将实现接口并等待源控件打包名为 OnLoadComplete 方法。

.NET Framework 安全性

请参见

参考

IVsAsynchOpenFromScc 接口

Microsoft.VisualStudio.Shell.Interop 命名空间