Partilhar via


Evento WindowEventsClass.WindowClosing

Essa API oferece suporte à infra-estrutura do .NET Framework e não se destina a ser usado diretamente em seu código.

Ocorre imediatamente antes de fecha uma janela.

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

Sintaxe

Public Overridable Event WindowClosing As _dispWindowEvents_WindowClosingEventHandler

Dim instance As WindowEventsClass
Dim handler As _dispWindowEvents_WindowClosingEventHandler

AddHandler instance.WindowClosing, handler
public virtual event _dispWindowEvents_WindowClosingEventHandler WindowClosing
public:
virtual  event _dispWindowEvents_WindowClosingEventHandler^ WindowClosing {
    void add (_dispWindowEvents_WindowClosingEventHandler^ value);
    void remove (_dispWindowEvents_WindowClosingEventHandler^ value);
}
O JScript não oferece suporte a eventos.

Implementa

_dispWindowEvents_Event.WindowClosing

Exemplos

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

Permissões

Consulte também

Referência

WindowEventsClass Classe

WindowEventsClass Membros

Espaço para nome EnvDTE