DocumentEventsClass.DocumentClosing Event

Definition

Occurs just before a document is closed.

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

public:
 virtual event EnvDTE::_dispDocumentEvents_DocumentClosingEventHandler ^ DocumentClosing;
public:
 virtual event EnvDTE::_dispDocumentEvents_DocumentClosingEventHandler ^ DocumentClosing;
public virtual event EnvDTE._dispDocumentEvents_DocumentClosingEventHandler DocumentClosing;
member this.DocumentClosing : EnvDTE._dispDocumentEvents_DocumentClosingEventHandler 
Public Overridable Custom Event DocumentClosing As _dispDocumentEvents_DocumentClosingEventHandler Implements DocumentClosing

Event Type

Implements

Examples

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

Applies to