IOleInPlaceComponent.FQueryClose 方法

查询成为就地 VSPackage 对象确定对象是否可以停止。

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

语法

声明
Function FQueryClose ( _
    fPromptUser As Integer _
) As Integer
int FQueryClose(
    int fPromptUser
)

参数

返回值

类型:System.Int32
FQueryClose 返回 true ,如果方法成功,或者不需要保存,并 false ,如果保存失败,或者保存是不可能的。

备注

COM 签名

从 oleipc.idl:

BOOL IOleInPlaceComponent::FQueryClose(
   [in] BOOL fPromptUser
);

FQueryClose 调用作为环境的关闭进程的一部分。该环境调用每个的 FQueryClose 方法其就地对象。,除非用户决定放弃更改,一就地对象应保存所有未保存的数据。

.NET Framework 安全性

请参见

参考

IOleInPlaceComponent 接口

Microsoft.VisualStudio.Shell.Interop 命名空间