Udostępnij za pośrednictwem


Automation Model Overview

The automation model consists of a set of objects against which you can write an add-in, a wizard, or a macro. For simplicity, the term add-in is often used throughout this section to indicate any consumer of automation. Add-ins are compiled applications that manipulate the environment and automate tasks.

Objects in the Automation Model

The automation model consists of related groups of objects that control major facets of the common environment. The following is a diagram that shows the extensive set of objects that compose the automation model.

Visual Studio automation objects

Visual Studio Automation Object Chart

For more information, see Extending the Visual Studio Environment.

The environment provides a model for different functional areas. For instance, there is a code model for various elements that you might find in code. There is a document model for various document elements. One area, the project area, is of particular interest to VSPackage providers. You will likely want your new project types to contribute to the automation model in much the same way as Visual C++ and Visual Basic contribute to the automation model. That process is outlined in Providing Automation for VSPackages.

Places where you can consider extending the automation model of the environment:

  • Project

  • Document

  • Code

  • Build

For more information on automation, see Automation and Extensibility for Visual Studio. This document and the documents it provides links to, help you make decisions regarding how you should provide automation for your VSPackage.

See Also

Tasks

How to: Create an Add-In