IVsSolutionEvents3.OnAfterOpenProject 方法 (IVsHierarchy, Int32)

notifies 侦听的客户端打开该项目。

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

语法

声明
Function OnAfterOpenProject ( _
    pHierarchy As IVsHierarchy, _
    fAdded As Integer _
) As Integer
int OnAfterOpenProject(
    IVsHierarchy pHierarchy,
    int fAdded
)

参数

  • fAdded
    类型:System.Int32
    [in] true ,如果项目添加到解决方案中,在打开后解决方案。false ,如果项目添加到解决方案中,打开后解决方案。

返回值

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

备注

COM 签名

从 vsshell.idl:

HRESULT IVsSolutionEvents3::OnAfterOpenProject(
   [in] IVsHierarchy *pHierarchy,
   [in] BOOL fAdded
);

.NET Framework 安全性

请参见

参考

IVsSolutionEvents3 接口

OnAfterOpenProject 重载

Microsoft.VisualStudio.Shell.Interop 命名空间