Freigeben über


Reagieren auf Automatisierungsereignisse

Aktualisiert: November 2007

When events occur in elements of the Visual Studio integrated development environment (IDE), you can use objects from the automation model to respond to them.

You can use the objects, for example, to respond when:

  • A build is initiated or completed.

  • Someone clicks a Command Bar button.

  • A document is opened, closed, or saved.

  • Items are added, renamed, or removed from a solution or project.

  • A line is changed in the Code Editor.

  • A window is created, selected, moved, or closed.

The tasks below demonstrate how to respond to events in Visual Studio.

Task

Description

Ereignisobjekte für die Automatisierung

Includes a complete list of automation event objects to which you can respond.

Gewusst wie: Behandeln von Automatisierungsereignissen (Visual Basic)

Explains how to respond to events in Visual Basic.

Gewusst wie: Behandeln von Automatisierungsereignissen (Visual C#)

Illustrates how to respond to events in Visual C#.

Gewusst wie: Behandeln von Ereignissen mithilfe von Makros

Explains how to respond to events in Visual Studio macros.

Gewusst wie: Erstellen eines Ereignishandlers in einem Makro für einen bestimmten Projekttyp

Explains how to respond to project type specific events in a Visual C# , Visual Basic , and Visual J# project by using a macro.

Gewusst wie: Reagieren auf Ereignisse in einem bestimmten Projekt (Visual Basic)

Illustrates how to use automation to respond to events in Visual C# , Visual Basic , and Visual J# projects.

Siehe auch

Aufgaben

Gewusst wie: Hinzufügen und Ändern von Befehlen

Gewusst wie: Erstellen von Add-Ins

Exemplarische Vorgehensweise: Erstellen eines Assistenten

Konzepte

Steuern von Projekten und Projektmappen

Diagramm "Automationsobjektmodell"

Weitere Ressourcen

Erstellen und Steuern von Umgebungsfenstern

Erstellen von Add-Ins und Assistenten

Referenz zur Automatisierung und Erweiterbarkeit