Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Detach Method
Collapse the table of content
Expand the table of content

DataServiceCollection<T>.Detach Method

Disables DataServiceContext tracking of all items in the collection.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft