Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets Comments contained in this element (not comments linked to it).
Namespace: Microsoft.VisualStudio.Uml.Classes
Assembly: Microsoft.VisualStudio.Uml.Interfaces (in Microsoft.VisualStudio.Uml.Interfaces.dll)
Syntax
'Declaration
ReadOnly Property OwnedComments As IEnumerable(Of IComment)
Get
IEnumerable<IComment> OwnedComments { get; }
property IEnumerable<IComment^>^ OwnedComments {
IEnumerable<IComment^>^ get ();
}
abstract OwnedComments : IEnumerable<IComment>
function get OwnedComments () : IEnumerable<IComment>
Property Value
Type: System.Collections.Generic.IEnumerable<IComment>
Remarks
To get the comments that are linked to an element, use:
IEnumerable <IComment> comments =
store.AllInstances<IComment>()
.Where(eachComment =>
eachComment.AnnotatedElements.Contains(element));
.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.