IVsFireSolutionEvents.FireOnQueryCloseProject 方法

激发解决方案事件, OnQueryCloseProject,指示有关关闭项目的查询。

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

语法

声明
Function FireOnQueryCloseProject ( _
    pHierarchy As IVsHierarchy, _
    fRemoving As Integer _
) As Integer
int FireOnQueryCloseProject(
    IVsHierarchy pHierarchy,
    int fRemoving
)

参数

  • fRemoving
    类型:System.Int32
    [in] 布尔值。设置为 true ,如果项目从解决方案中移除,解决方案关闭之前。设置为 false ,如果项目从解决方案中移除,当解决方案关闭时。

返回值

类型:System.Int32
,如果被调用方上操作,返回 S_FALSE 。否则,返回 S_OK

备注

COM 签名

从 vsshell.idl:

HRESULT IVsFireSolutionEvents::FireOnQueryCloseProject(
   [in] IVsHierarchy *pHierarchy, 
   [in] BOOL fRemoving
);

.NET Framework 安全性

请参见

参考

IVsFireSolutionEvents 接口

Microsoft.VisualStudio.Shell.Interop 命名空间