DataServiceCollection(Of T).Detach Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 Sub Detach

The Detach method can only be called when DataServiceCollection(Of 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
Available since 3.5
Available since 4.0
Return to top