DocumentEvents Interface

Definition

Provides document events. Use this object for functionality and refer to DocumentEventsClass for this object's documentation.

[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.DocumentEventsClass))]
[System.Runtime.InteropServices.Guid("DC5437F5-F114-11D2-AACF-00C04F688DDE")]
public interface DocumentEvents : EnvDTE._dispDocumentEvents_Event, EnvDTE._DocumentEvents
Derived
Attributes
Implements

Examples

<System.ContextStaticAttribute()> Public WithEvents DocumentEvents As EnvDTE.DocumentEvents  

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

Remarks

The DocumentEvents object is returned by DTE.Events.DocumentEvents.

Applies to