Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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


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.

© 2015 Microsoft