Delen via


Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The classes in this namespace allow you to read and update layer models. ILayerModel represents the model root, ILayer is a layer node, and IDependencyLink instances link the layers. Each ILayer is represented on a diagram by a IShape.

For more information, see the following topics:

Updating Layer Models by using the API

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

Troubleshooting Extensions for Layer Diagrams

How to: Generate Files from a UML Model

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

Creating and Using Layer Models as a User

Layer Diagrams: Reference

Layer Diagrams: Guidelines

Create Layer Diagrams from Code

Validate Code with Layer Diagrams

Programming UML Models

Extending UML Models and Diagrams

Classes

  Class Description
Public class ArtifactReferenceExtensions Layer Designer extension methods
Public class CreateArtifactReferenceCompletedEventArgs Callback argument for artifact reference creation.
Public class Extensions Layer Designer extension methods
Public class LayerDesignerExtensionAttribute Apply this attribute to a class that defines an extension on layer diagrams.
Public class PropertyExtension<TTargetElementType> Abstract base class for Property Extensions.
Public class ValidationExtensions Extension methods for validation.

Interfaces

  Interface Description
Public interface ILayer Layer element
Public interface ILayerArtifactReference Artifact reference
Public interface ILayerComment Comment element. A comment can be contained in a layer model or in a layer, and can also be linked to any number of layers.
Public interface ILayerCommentLink Link from a comment to an element.
Public interface ILayerContainer An object that can contain a layer, such as a layer model or layer.
Public interface ILayerDependencyLink Link from a layer to another layer that it depends on.
Public interface ILayerElement The base for all elements in a layer diagram.
Public interface ILayerLink The base for all links in a layer model.
Public interface ILayerModel Root layer model
Public interface IPropertyExtension Layer extension to show custom properties in the property grid
Public interface IValidateArchitectureExtension Export and implement this interface to define a custom layer validation scheme, invoked by the Validate Architecture command.

Enumerations

  Enumeration Description
Public enumeration GraphErrorLevel Level of error to used in error generation