Condividi tramite


Proprietà IComment.AnnotatedElements

Ottiene gli elementi a cui il commento associato.

Spazio dei nomi:  Microsoft.VisualStudio.Uml.Classes
Assembly:  Microsoft.VisualStudio.Uml.Interfaces (in Microsoft.VisualStudio.Uml.Interfaces.dll)

Sintassi

'Dichiarazione
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>

Valore proprietà

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

Note

Per ottenere commenti collegati a un determinato elemento, utilizzare:

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IComment Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Uml.Classes