Extensions.CreateComment Method (ILayerContainer, String)
Create a comment.
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 CreateComment ( _
parent As ILayerContainer, _
body As String _
) As ILayerComment
public static ILayerComment CreateComment(
this ILayerContainer parent,
string body
)
[ExtensionAttribute]
public:
static ILayerComment^ CreateComment(
ILayerContainer^ parent,
String^ body
)
static member CreateComment :
parent:ILayerContainer *
body:string -> ILayerComment
public static function CreateComment(
parent : ILayerContainer,
body : String
) : ILayerComment
Parameters
parent
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerContainerThe parent container, either an ILayer or an ILayerModel.
body
Type: StringThe comment text.
Return Value
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerComment
The new comment.
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
CreateCommentLink