次の方法で共有


DataServiceContext.Links プロパティ

現在 DataServiceContext オブジェクトによって追跡されているすべての関連付けまたはリンクのコレクションを取得します。

名前空間:  System.Data.Services.Client
アセンブリ:  Microsoft.Data.Services.Client (Microsoft.Data.Services.Client.dll)

構文

'宣言
Public ReadOnly Property Links As ReadOnlyCollection(Of LinkDescriptor)
    Get
'使用
Dim instance As DataServiceContext
Dim value As ReadOnlyCollection(Of LinkDescriptor)

value = instance.Links
public ReadOnlyCollection<LinkDescriptor> Links { get; }
public:
property ReadOnlyCollection<LinkDescriptor^>^ Links {
    ReadOnlyCollection<LinkDescriptor^>^ get ();
}
member Links : ReadOnlyCollection<LinkDescriptor>
function get Links () : ReadOnlyCollection<LinkDescriptor>

プロパティ値

型: System.Collections.ObjectModel.ReadOnlyCollection<LinkDescriptor>
現在 DataServiceContext オブジェクトによって追跡されているすべての関連付けまたはリンクを表す LinkDescriptor オブジェクトのコレクション。

説明

現在追跡されているリンクがない場合は、要素がゼロの一覧が返されます。 コレクションは読み取り専用です。

関連項目

参照

DataServiceContext クラス

System.Data.Services.Client 名前空間