IElement.OwnedComments 속성

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

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

구문

‘선언
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>

속성 값

형식: System.Collections.Generic.IEnumerable<IComment>

설명

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

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

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

IElement 인터페이스

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