Compartir a través de


IElement.OwnedComments (Propiedad)

Obtiene los comentarios incluidos en este elemento (no los comentarios vinculados a él).

Espacio de nombres:  Microsoft.VisualStudio.Uml.Classes
Ensamblado:  Microsoft.VisualStudio.Uml.Interfaces (en Microsoft.VisualStudio.Uml.Interfaces.dll)

Sintaxis

'Declaración
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>

Valor de propiedad

Tipo: System.Collections.Generic.IEnumerable<IComment>

Comentarios

Para obtener los comentarios vinculados a un elemento, use:

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

Seguridad de .NET Framework

Vea también

Referencia

IElement Interfaz

Microsoft.VisualStudio.Uml.Classes (Espacio de nombres)