Events2 Events2 Events2 Events2 Events2 Events2 Interface

Definition

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

public interface class Events2 : EnvDTE::Events
public interface class Events2 : EnvDTE::Events
__interface Events2 : EnvDTE::Events
[System.Runtime.InteropServices.Guid("BED31E8C-F845-4397-AF13-6B82A6996C0D")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Events2 : EnvDTE.Events
type Events2 = interface
    interface Events
Public Interface Events2
Implements Events
Attributes
Implements

Examples

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  

Remarks

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.

Properties

BuildEvents BuildEvents BuildEvents BuildEvents BuildEvents BuildEvents

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

CodeModelEvents[CodeElement] CodeModelEvents[CodeElement] CodeModelEvents[CodeElement] CodeModelEvents[CodeElement] CodeModelEvents[CodeElement] CodeModelEvents[CodeElement]

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

CommandBarEvents[Object] CommandBarEvents[Object] CommandBarEvents[Object] CommandBarEvents[Object] CommandBarEvents[Object] CommandBarEvents[Object]

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

CommandEvents[String, Int32] CommandEvents[String, Int32] CommandEvents[String, Int32] CommandEvents[String, Int32] CommandEvents[String, Int32] CommandEvents[String, Int32]

Gets the CommandEvents for the specified command.

DebuggerEvents DebuggerEvents DebuggerEvents DebuggerEvents DebuggerEvents DebuggerEvents

Gets the object that provides events from the debugger.

DebuggerExpressionEvaluationEvents DebuggerExpressionEvaluationEvents DebuggerExpressionEvaluationEvents DebuggerExpressionEvaluationEvents DebuggerExpressionEvaluationEvents DebuggerExpressionEvaluationEvents

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

DebuggerProcessEvents DebuggerProcessEvents DebuggerProcessEvents DebuggerProcessEvents DebuggerProcessEvents DebuggerProcessEvents

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

DocumentEvents[Document] DocumentEvents[Document] DocumentEvents[Document] DocumentEvents[Document] DocumentEvents[Document] DocumentEvents[Document]

Gets the DocumentEvents that provides events for the document.

DTEEvents DTEEvents DTEEvents DTEEvents DTEEvents DTEEvents

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

FindEvents FindEvents FindEvents FindEvents FindEvents FindEvents

Gets the FindEvents for the Find operation.

MiscFilesEvents MiscFilesEvents MiscFilesEvents MiscFilesEvents MiscFilesEvents MiscFilesEvents

Gets the ProjectItemsEvents for the solution.

OutputWindowEvents[String] OutputWindowEvents[String] OutputWindowEvents[String] OutputWindowEvents[String] OutputWindowEvents[String] OutputWindowEvents[String]

Gets the OutputWindowEvents for the window events.

ProjectItemsEvents ProjectItemsEvents ProjectItemsEvents ProjectItemsEvents ProjectItemsEvents ProjectItemsEvents

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

ProjectsEvents ProjectsEvents ProjectsEvents ProjectsEvents ProjectsEvents ProjectsEvents

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

PublishEvents PublishEvents PublishEvents PublishEvents PublishEvents PublishEvents

Gets an object to comment to publishing events.

SelectionEvents SelectionEvents SelectionEvents SelectionEvents SelectionEvents SelectionEvents

Gets the SelectionEvents for the selection.

SolutionEvents SolutionEvents SolutionEvents SolutionEvents SolutionEvents SolutionEvents

Gets the SolutionEvents object for the solution.

SolutionItemsEvents SolutionItemsEvents SolutionItemsEvents SolutionItemsEvents SolutionItemsEvents SolutionItemsEvents

Gets the ProjectItemsEvents object for the solution.

TaskListEvents[String] TaskListEvents[String] TaskListEvents[String] TaskListEvents[String] TaskListEvents[String] TaskListEvents[String]

Gets the TaskListEvents for the development environment.

TextDocumentKeyPressEvents[TextDocument] TextDocumentKeyPressEvents[TextDocument] TextDocumentKeyPressEvents[TextDocument] TextDocumentKeyPressEvents[TextDocument] TextDocumentKeyPressEvents[TextDocument] TextDocumentKeyPressEvents[TextDocument]

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

TextEditorEvents[TextDocument] TextEditorEvents[TextDocument] TextEditorEvents[TextDocument] TextEditorEvents[TextDocument] TextEditorEvents[TextDocument] TextEditorEvents[TextDocument]

Gets the TextEditorEvents object for the IDE.

WindowEvents[Window] WindowEvents[Window] WindowEvents[Window] WindowEvents[Window] WindowEvents[Window] WindowEvents[Window]

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

WindowVisibilityEvents[Window] WindowVisibilityEvents[Window] WindowVisibilityEvents[Window] WindowVisibilityEvents[Window] WindowVisibilityEvents[Window] WindowVisibilityEvents[Window]

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

Methods

GetObject(String) GetObject(String) GetObject(String) GetObject(String) GetObject(String) GetObject(String)

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

Applies to