DataServiceContext.Links 属性

定义

获取对象当前正在跟踪 DataServiceContext 的所有关联或链接的集合。

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::Data::Services::Client::LinkDescriptor ^> ^ Links { System::Collections::ObjectModel::ReadOnlyCollection<System::Data::Services::Client::LinkDescriptor ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Services.Client.LinkDescriptor> Links { get; }
member this.Links : System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Services.Client.LinkDescriptor>
Public ReadOnly Property Links As ReadOnlyCollection(Of LinkDescriptor)

属性值

表示由对象跟踪的当前所跟踪LinkDescriptor的所有关联或链接的对象的集合DataServiceContext

注解

如果当前未跟踪任何链接,则返回包含 0 个元素的列表。 集合是只读的。

适用于