Funktionelle Automatisierungsgruppen
Aktualisiert: November 2007
The automation object model consists of a few, expansive functional groups of objects. These objects control major facets of the integrated development environment (IDE) and apply to all project types in Visual Studio. Understanding how these groups work makes it easier to understand and use the model.
The objects in these functional groups are fully outlined in the Diagramm "Automationsobjektmodell". The groups are:
Solution, project, and project item objects.
Build objects.
Code editor objects.
Code definition manipulation objects.
Tool window and document manipulation objects.
Tool window-specific objects, such as the Task List, Output window, and Toolbox.
Command objects.
Debugging objects.
Event-handling objects.
Each functional group consists of one or more related objects, collections, or interfaces that contribute to a particular purpose. For example, the primary function of the Event objects group is to provide access to events occurring in the IDE. One such object in this group is the TaskListEvents object, which allows you to respond to events that occur in the Task List. Another in this group is the BuildEvents object, which allows you to respond to events that occur in a build operation, such as the beginning or completion of a build.
Project-Specific Automation Models
In addition to the "core" automation model — so called, because any Visual Studio language can it — each language in Visual Studio offers one or more project-specific automation models to access its special features. For Visual Basic, Visual C#, and Visual J# projects, that model is located in the following assemblies:
For more information about this functionality, see Einführung in die Projekterweiterbarkeit.
For Visual C++, the assemblies are:
They represent (respectively), the Visual C++ specific code model, the Visual C++ project model, and the Visual C++ wizard model.
Siehe auch
Aufgaben
Gewusst wie: Erstellen von Add-Ins
Exemplarische Vorgehensweise: Erstellen eines Assistenten
Konzepte
Diagramm "Automationsobjektmodell"
Referenz
Visual Studio-Befehle und -Schalter