Extensions.GetDiagram Method
Get the diagram that presents this model.
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 GetDiagram ( _
layerModel As ILayerModel _
) As IDiagram
public static IDiagram GetDiagram(
this ILayerModel layerModel
)
[ExtensionAttribute]
public:
static IDiagram^ GetDiagram(
ILayerModel^ layerModel
)
static member GetDiagram :
layerModel:ILayerModel -> IDiagram
public static function GetDiagram(
layerModel : ILayerModel
) : IDiagram
Parameters
layerModel
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerModelThe layer model.
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IDiagram
The diagram.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ILayerModel. 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
GetLayerModel