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)

member Clear : 
        stopTracking:bool -> unit

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.

Show: