다음을 통해 공유


IElement.OwnedComments 속성

연결된 주석은 가져오지 않으나 이 요소에 포함된 주석을 가져옵니다.

네임스페이스:  Microsoft.VisualStudio.Uml.Classes
어셈블리:  Microsoft.VisualStudio.Uml.Interfaces(Microsoft.VisualStudio.Uml.Interfaces.dll)

구문

‘선언
ReadOnly Property OwnedComments As IEnumerable(Of IComment)
IEnumerable<IComment> OwnedComments { get; }
property IEnumerable<IComment^>^ OwnedComments {
    IEnumerable<IComment^>^ get ();
}
abstract OwnedComments : IEnumerable<IComment> with get
function get OwnedComments () : IEnumerable<IComment>

속성 값

형식: IEnumerable<IComment>

설명

요소에 연결된 주석을 가져오려면 다음을 사용합니다.

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

.NET Framework 보안

참고 항목

참조

IElement 인터페이스

Microsoft.VisualStudio.Uml.Classes 네임스페이스