Share via


WindowEventsClass.WindowClosing Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs just before a window closes.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event WindowClosing As _dispWindowEvents_WindowClosingEventHandler
public virtual event _dispWindowEvents_WindowClosingEventHandler WindowClosing
public:
virtual  event _dispWindowEvents_WindowClosingEventHandler^ WindowClosing {
    void add (_dispWindowEvents_WindowClosingEventHandler^ value);
    void remove (_dispWindowEvents_WindowClosingEventHandler^ value);
}
abstract WindowClosing : IEvent<_dispWindowEvents_WindowClosingEventHandler,
    EventArgs>
override WindowClosing : IEvent<_dispWindowEvents_WindowClosingEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispWindowEvents_Event.WindowClosing

Examples

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

.NET Framework Security

See Also

Reference

WindowEventsClass Class

EnvDTE Namespace