IElement::OwnedComments Property
Visual Studio 2015
Gets Comments contained in this element (not comments linked to it).
Assembly: Microsoft.VisualStudio.Uml.Interfaces (in Microsoft.VisualStudio.Uml.Interfaces.dll)
To get the comments that are linked to an element, use:
IEnumerable <IComment> comments =
store.AllInstances<IComment>()
.Where(eachComment =>
eachComment.AnnotatedElements.Contains(element));
Show: