次の方法で共有


PresentationViewsSubject.GetLinks メソッド

特定の PresentationElement と ModelElement の間の PresentationViewsSubject リンクを取得します。

名前空間:  Microsoft.VisualStudio.Modeling.Diagrams
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 内)

構文

'宣言
Public Shared Function GetLinks ( _
    source As PresentationElement, _
    target As ModelElement _
) As ReadOnlyCollection(Of PresentationViewsSubject)
public static ReadOnlyCollection<PresentationViewsSubject> GetLinks(
    PresentationElement source,
    ModelElement target
)

パラメーター

戻り値

型 : System.Collections.ObjectModel.ReadOnlyCollection<PresentationViewsSubject>

解説

そこで 2 種類のオブジェクト間のこのリレーションシップの複数のリンクしないでください。 代わりに、GetLink を使用してください。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

PresentationViewsSubject クラス

Microsoft.VisualStudio.Modeling.Diagrams 名前空間