Allows access to all events in the extensibility model. Events may also be exposed from specific objects within the extensibility model.
Assembly: EnvDTE (in EnvDTE.dll)
Thetype exposes the following members.
|BuildEvents||Gets the BuildEvents object, which provides events for solution builds.|
|CommandBarEvents||Gets an object providing events fired when the supplied CommandBarControl object is clicked.|
|CommandEvents||Gets the CommandEvents for the specified command.|
|DebuggerEvents||Gets the object that provides events from the debugger.|
|DocumentEvents||Gets the DocumentEvents that provides events for the document.|
|DTEEvents||Gets the DTEEvents that provides events for the development environment.|
|FindEvents||Gets the FindEvents for the Find operation.|
|MiscFilesEvents||Gets the ProjectItemsEvents for the solution.|
|OutputWindowEvents||Gets the OutputWindowEvents for the window events.|
|SelectionEvents||Gets the SelectionEvents for the selection.|
|SolutionEvents||Gets the SolutionEvents object for the solution.|
|SolutionItemsEvents||Gets the ProjectItemsEvents object for the solution.|
|TaskListEvents||Gets the TaskListEvents for the development environment.|
|TextEditorEvents||Gets the TextEditorEvents object for the IDE.|
|WindowEvents||Gets the WindowEvents object that provides events for windows in the development environment.|
The automation model contains a root object from which automation clients written in any language can reference automation events, such as the SolutionEvents.
Various IDE tools, project types, editors, and so forth may add additional events to the object that are specific to them. For example, Visual C++ adds the VCProjectItemsEvents property.
Public Module Module1 Dim WithEvents bldevents As BuildEvents Dim applicationObject As EnvDTE.DTE Sub EventsExample() Dim addInInstance As EnvDTE.AddIn applicationObject = CType(Application, EnvDTE.DTE) bldevents = CType(applicationObject.Events.BuildEvents, EnvDTE.BuildEvents) End Sub Private Sub bldevents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles bldevents.OnBuildDone MsgBox("Build complete") End Sub End Module