Freigeben über


DataServiceCollection<T>.Detach Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Sub Detach
public void Detach()

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.