发生的处理特定事件,在对话框关闭,例如从对话框控件中保存属性,保存新的连接字符串和打开连接,则对话框的 好 单击按钮。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Overrides Sub OnFormClosing ( _
e As FormClosingEventArgs _
)
protected override void OnFormClosing(
FormClosingEventArgs e
)
protected:
virtual void OnFormClosing(
FormClosingEventArgs^ e
) override
abstract OnFormClosing :
e:FormClosingEventArgs -> unit
override OnFormClosing :
e:FormClosingEventArgs -> unit
protected override function OnFormClosing(
e : FormClosingEventArgs
)
参数
- e
类型:System.Windows.Forms.FormClosingEventArgs
一个包含事件数据的 FormClosingEventArgs 对象。
备注
使用存储的 IVsDataConnectionSupport 对象,基类的实现调用 SaveProperties 方法然后尝试打开连接。如果此操作失败,它显示一个消息框并返回该用户添加到实时对话框。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。