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
- parent
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerContainer
The parent container, either an ILayer or an ILayerModel.
- name
Type: System.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
- 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
CreateDependencyLink()
CreateLayer()