Freigeben über


DocumentEventsClass.DocumentClosing-Ereignis

Diese API unterstützt die .NET Framework-Infrastruktur und ist nicht für die direkte Verwendung in Code bestimmt.

Tritt unmittelbar vor dem Schließen eines Dokuments ein.

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

Syntax

'Declaration
Public Overridable Event DocumentClosing As _dispDocumentEvents_DocumentClosingEventHandler
public virtual event _dispDocumentEvents_DocumentClosingEventHandler DocumentClosing
public:
virtual  event _dispDocumentEvents_DocumentClosingEventHandler^ DocumentClosing {
    void add (_dispDocumentEvents_DocumentClosingEventHandler^ value);
    void remove (_dispDocumentEvents_DocumentClosingEventHandler^ value);
}
abstract DocumentClosing : IEvent<_dispDocumentEvents_DocumentClosingEventHandler,
    EventArgs>
override DocumentClosing : IEvent<_dispDocumentEvents_DocumentClosingEventHandler,
    EventArgs>
JScript unterstützt keine Ereignisse.

Implementiert

_dispDocumentEvents_Event.DocumentClosing

Beispiele

Public Sub DocumentEvents_DocumentClosing(ByVal Document As _
    EnvDTE.Document) Handles DocumentEvents.DocumentClosing
       MsgBox("test")
End Sub

.NET Framework-Sicherheit

Siehe auch

Referenz

DocumentEventsClass Klasse

EnvDTE-Namespace