共用方式為


_dispWindowEvents_Event.WindowClosing 事件

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

僅限 Microsoft 內部使用。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
Event WindowClosing As _dispWindowEvents_WindowClosingEventHandler
event _dispWindowEvents_WindowClosingEventHandler WindowClosing
 event _dispWindowEvents_WindowClosingEventHandler^ WindowClosing {
    void add (_dispWindowEvents_WindowClosingEventHandler^ value);
    void remove (_dispWindowEvents_WindowClosingEventHandler^ value);
}
abstract WindowClosing : IEvent<_dispWindowEvents_WindowClosingEventHandler,
    EventArgs>
JScript 不支援事件。

.NET Framework 安全性

請參閱

參考

_dispWindowEvents_Event 介面

EnvDTE 命名空間