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