Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Occurs just before a document is closed.
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 does not support events.
Implements
_dispDocumentEvents_Event.DocumentClosing
Examples
Public Sub DocumentEvents_DocumentClosing(ByVal Document As _
    EnvDTE.Document) Handles DocumentEvents.DocumentClosing
       MsgBox("test")
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.