Sdílet prostřednictvím


IComment.AnnotatedElements – vlastnost

Získá prvků, ke které je připojen komentář.

Obor názvů:  Microsoft.VisualStudio.Uml.Classes
Sestavení:  Microsoft.VisualStudio.Uml.Interfaces (v Microsoft.VisualStudio.Uml.Interfaces.dll)

Syntaxe

'Deklarace
ReadOnly Property AnnotatedElements As IList(Of IElement)
IList<IElement> AnnotatedElements { get; }
property IList<IElement^>^ AnnotatedElements {
    IList<IElement^>^ get ();
}
abstract AnnotatedElements : IList<IElement>
function get AnnotatedElements () : IList<IElement>

Hodnota vlastnosti

Typ: System.Collections.Generic.IList<IElement>

Poznámky

Chcete-li poznámky, které jsou propojeny se daný prvek, použijte:

IEnumerable
<IComment> comments = store.AllInstances<IComment>() 
.Where(eachComment => eachComment.AnnotatedElements.Contains(element));

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

IComment Rozhraní

Microsoft.VisualStudio.Uml.Classes – obor názvů