Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

DocumentEvents Interface

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

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

[GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE")] 
public interface DocumentEvents : _DocumentEvents, _dispDocumentEvents_Event
/** @attribute GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE") */ 
public interface DocumentEvents extends _DocumentEvents, _dispDocumentEvents_Event
GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE") 
public interface DocumentEvents extends _DocumentEvents, _dispDocumentEvents_Event

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

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

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

Community Additions

ADD
Show:
© 2015 Microsoft