Export (0) Print
Expand All

DataServiceCollection(Of T).Clear Method (Boolean)

Removes all items from the collection, and optionally detaches all the items from the DataServiceContext.

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

'Declaration
Public Sub Clear ( _
	stopTracking As Boolean _
)

Parameters

stopTracking
Type: System.Boolean
When true, detaches all items from the DataServiceContext.

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

Silverlight

Supported in: 5, 4

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

Community Additions

ADD
Show:
© 2014 Microsoft