DataServiceCollection<T>.Detach 方法
定义
禁止 DataServiceContext 跟踪集合中的所有项。Disables DataServiceContext tracking of all items in the collection.
public:
void Detach();
public void Detach ();
member this.Detach : unit -> unit
Public Sub Detach ()
注解
Detach 方法只能在 DataServiceCollection<T> 是根集合时调用。The Detach method can only be called when DataServiceCollection<T> is the root collection.
在属于根集合的集合上调用 Detach 方法时,也将停止对数据图中所有相关对象进行的跟踪。When the Detach method is called on a collection that is a root collection, tracking is also stopped for all related objects in the data graph.