Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceCollection<T>.Detach Method

Disables the DataServiceContext tracking of all items in the collection.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

public void Detach()

The Detach method can only be called when DataServiceCollection<T> is the root collection.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft