Extensions.GetLayerModel Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Get the layer model displayed by this diagram.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetLayerModel ( _
diagram As IDiagram _
) As ILayerModel
public static ILayerModel GetLayerModel(
this IDiagram diagram
)
[ExtensionAttribute]
public:
static ILayerModel^ GetLayerModel(
IDiagram^ diagram
)
static member GetLayerModel :
diagram:IDiagram -> ILayerModel
public static function GetLayerModel(
diagram : IDiagram
) : ILayerModel
Parameters
diagram
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IDiagramThe diagram.
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerModel
The layer model.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IDiagram. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace