共用方式為


Extending Layer Diagrams

You can write code to create and update layer diagrams, and to validate the structure of your program code against layer diagrams in Visual Studio Ultimate. You can add commands that appear in the shortcut (context) menu of the diagrams, customize drag-and-drop gestures, and access the layer model from text templates. You can package these extensions into a Visual Studio Integration Extension (VSIX) and distribute them to users of Visual Studio Ultimate and Visual Studio Premium. For more information about layer diagrams, see:

Requirements

Requirements for Authoring Layer Extensions

You must have installed the following on the computer where you want to develop your layer extensions:

  • Visual Studio Ultimate

  • Visual Studio SDK

  • Visualization and Modeling SDK

Requirements for Using Layer Extensions

You must have installed the following on the computer where you want to run your layer extensions:

  • Visual Studio Premium, Visual Studio Ultimate, or Team Foundation Build

For more information, see Deploying a Layer Modeling Extension.

In This Section

Adding Commands and Gestures to Layer Diagrams

Adding Custom Architecture Validation to Layer Diagrams

Adding Custom Properties to a Layer Diagram

Navigating and Updating Layer Models in Program Code

Deploying a Layer Modeling Extension

Troubleshooting Extensions for Layer Diagrams

See Also

Concepts

How to: Define and Install a Modeling Extension

Layer Diagrams: Reference

Layer Diagrams: Guidelines

Create layer diagrams from code

Validate Code with Layer Diagrams

How to: Generate Files from a UML Model

How to: Open a UML Model by Using the Visual Studio API