DataServiceContext.DeleteLink(Object, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更改链接的状态,以在所跟踪 DataServiceContext的链接列表中删除。
public:
void DeleteLink(System::Object ^ source, System::String ^ sourceProperty, System::Object ^ target);
public void DeleteLink(object source, string sourceProperty, object target);
member this.DeleteLink : obj * string * obj -> unit
Public Sub DeleteLink (source As Object, sourceProperty As String, target As Object)
参数
- source
- Object
要标记为要删除的链接中的源对象。
- sourceProperty
- String
用于访问目标对象的源对象上的导航属性的名称。
- target
- Object
绑定到源对象的链接中涉及的目标对象。 目标对象必须是源属性或子类型标识的类型。
例外
当、source或sourceProperty为 null 时target。
注解
任何被 DataServiceContext跟踪的链接(无论其当前状态如何)都可以分离。