WindowEventsClass.WindowClosing 事件

定义

恰好在窗口关闭前发生。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual event EnvDTE::_dispWindowEvents_WindowClosingEventHandler ^ WindowClosing;
public:
 virtual event EnvDTE::_dispWindowEvents_WindowClosingEventHandler ^ WindowClosing;
public virtual event EnvDTE._dispWindowEvents_WindowClosingEventHandler WindowClosing;
member this.WindowClosing : EnvDTE._dispWindowEvents_WindowClosingEventHandler 
Public Overridable Custom Event WindowClosing As _dispWindowEvents_WindowClosingEventHandler Implements WindowClosing

事件类型

_dispWindowEvents_WindowClosingEventHandler

实现

示例

Public Sub WindowEvents_WindowClosing(ByVal Window As EnvDTE.Window) Handles WindowEvents.WindowClosing  
   MsgBox("test")  
End Sub  

适用于