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>.Clear Method (Boolean)

Indicates whether all the items from the collection are removed.

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

public void Clear(
	bool stopTracking
)

Parameters

stopTracking
Type: System.Boolean
true if all the items from the collection are removed; otherwise, false.

When an item is detached, all related objects in the data graph are also detached from the DataServiceContext.

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