Export (0) Print
Expand All

DataServiceCollection(Of 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)

'Declaration
Public Sub Clear ( _
	stopTracking As Boolean _
)
'Usage
Dim instance As DataServiceCollection 
Dim stopTracking As Boolean

instance.Clear(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.

Show:
© 2014 Microsoft