Events2 Interface

 

Allows access to all events in the extensibility model. Events may also be exposed from specific objects within the extensibility model.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

[GuidAttribute("BED31E8C-F845-4397-AF13-6B82A6996C0D")]
public interface Events2 : Events

NameDescription
System_CAPS_pubpropertyBuildEvents

Gets the BuildEvents object, which provides events for solution builds.

System_CAPS_pubpropertyCodeModelEvents[CodeElement]

Gets the CodeModelEvents object which provides events for the code model.

System_CAPS_pubpropertyCommandBarEvents[Object]

Gets an object providing events fired when the supplied CommandBarControl object is clicked.

System_CAPS_pubpropertyCommandEvents[String, Int32]

Gets the CommandEvents for the specified command.

System_CAPS_pubpropertyDebuggerEvents

Gets the object that provides events from the debugger.

System_CAPS_pubpropertyDebuggerExpressionEvaluationEvents

Gets an event object which can be used to be notified when the debugger starts or stops an expression evaluation.

System_CAPS_pubpropertyDebuggerProcessEvents

Retrieves an event object which can be used to notify when a debugged process runs or stops.

System_CAPS_pubpropertyDocumentEvents[Document]

Gets the DocumentEvents that provides events for the document.

System_CAPS_pubpropertyDTEEvents

Gets the DTEEvents object that provides events for the development environment.

System_CAPS_pubpropertyFindEvents

Gets the FindEvents for the Find operation.

System_CAPS_pubpropertyMiscFilesEvents

Gets the ProjectItemsEvents for the solution.

System_CAPS_pubpropertyOutputWindowEvents[String]

Gets the OutputWindowEvents for the window events.

System_CAPS_pubpropertyProjectItemsEvents

Gets an event object which can be used to find events for all project items within the solution.

System_CAPS_pubpropertyProjectsEvents

Gets an event object which can be used to find events for all projects wihin the solution.

System_CAPS_pubpropertyPublishEvents

Gets an object to comment to publishing events.

System_CAPS_pubpropertySelectionEvents

Gets the SelectionEvents for the selection.

System_CAPS_pubpropertySolutionEvents

Gets the SolutionEvents object for the solution.

System_CAPS_pubpropertySolutionItemsEvents

Gets the ProjectItemsEvents object for the solution.

System_CAPS_pubpropertyTaskListEvents[String]

Gets the TaskListEvents for the development environment.

System_CAPS_pubpropertyTextDocumentKeyPressEvents[TextDocument]

Gets an event object which can be used to find key press events within a text editor.

System_CAPS_pubpropertyTextEditorEvents[TextDocument]

Gets the TextEditorEvents object for the IDE.

System_CAPS_pubpropertyWindowEvents[Window]

Gets the WindowEvents object that provides events for windows in the development environment.

System_CAPS_pubpropertyWindowVisibilityEvents[Window]

Gets an event object which can be used to be notified when a tool window is showing or hiding.

NameDescription
System_CAPS_pubmethodGetObject(String)

Returns an interface or object that is late-bound to the DTE object and can be accessed by name at run time.

The automation model contains a root Events 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, which are specific to them, to the Events object. For example, Visual C++ adds the VCProjectItemsEvents property.

Public Module Module1
   Dim WithEvents bldevents As BuildEvents
   Dim applicationObject As EnvDTE.DTE

   Sub EventsExample()
      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
Return to top
Show: