Propriedade IComment.AnnotatedElements
Obtém os elementos aos quais o comentário é anexado.
Namespace: Microsoft.VisualStudio.Uml.Classes
Assembly: Microsoft.VisualStudio.Uml.Interfaces (em Microsoft.VisualStudio.Uml.Interfaces.dll)
Sintaxe
'Declaração
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>
Valor de propriedade
Tipo: System.Collections.Generic.IList<IElement>
Comentários
Para obter os comentários que estão vinculados a um determinado elemento, use:
IEnumerable
<IComment> comments = store.AllInstances<IComment>()
.Where(eachComment => eachComment.AnnotatedElements.Contains(element));
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiáveis.