Extensions.CreateDependencyLink Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Link this layer to another layer on which it depends.
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 CreateDependencyLink ( _
sourceLayer As ILayer, _
targetLayer As ILayer _
) As ILayerDependencyLink
public static ILayerDependencyLink CreateDependencyLink(
this ILayer sourceLayer,
ILayer targetLayer
)
[ExtensionAttribute]
public:
static ILayerDependencyLink^ CreateDependencyLink(
ILayer^ sourceLayer,
ILayer^ targetLayer
)
static member CreateDependencyLink :
sourceLayer:ILayer *
targetLayer:ILayer -> ILayerDependencyLink
public static function CreateDependencyLink(
sourceLayer : ILayer,
targetLayer : ILayer
) : ILayerDependencyLink
Parameters
sourceLayer
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerThe source layer, which requires the target layer.
targetLayer
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerThe target layer, which is required by the source.
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerDependencyLink
The new dependency link
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ILayer. 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