Extensions.CreateLayer Method (ILayerContainer, String)

Create a new layer.

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 CreateLayer ( _
    parent As ILayerContainer, _
    name As String _
) As ILayer
public static ILayer CreateLayer(
    this ILayerContainer parent,
    string name
)
[ExtensionAttribute]
public:
static ILayer^ CreateLayer(
    ILayerContainer^ parent, 
    String^ name
)
static member CreateLayer : 
        parent:ILayerContainer * 
        name:string -> ILayer
public static function CreateLayer(
    parent : ILayerContainer, 
    name : String
) : ILayer

Parameters

  • name
    Type: String

    The unique name of the new layer.

Return Value

Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayer
The new layer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILayerContainer. 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

See Also

Reference

Extensions Class

CreateLayer Overload

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace

CreateDependencyLink

CreateLayer