DataServiceContext.GetLinkDescriptor(Object, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 LinkDescriptor 定义两个实体之间的关系的特定链接。
public:
System::Data::Services::Client::LinkDescriptor ^ GetLinkDescriptor(System::Object ^ source, System::String ^ sourceProperty, System::Object ^ target);
public System.Data.Services.Client.LinkDescriptor GetLinkDescriptor(object source, string sourceProperty, object target);
member this.GetLinkDescriptor : obj * string * obj -> System.Data.Services.Client.LinkDescriptor
Public Function GetLinkDescriptor (source As Object, sourceProperty As String, target As Object) As LinkDescriptor
参数
- source
- Object
链接中的源对象。
- sourceProperty
- String
返回相关对象的导航属性 source 的名称。
- target
- Object
相关实体。
返回
LinkDescriptor指定关系的实例,或者null如果LinkDescriptor关系不存在。