DataServiceCollection<T>.Clear(Boolean) Método

Definição

Remove todos os itens da coleção e, opcionalmente, desanexa todos os itens do DataServiceContext.Removes all items from the collection, and optionally detaches all the items from the DataServiceContext.

public:
 void Clear(bool stopTracking);
public void Clear (bool stopTracking);
override this.Clear : bool -> unit
Public Sub Clear (stopTracking As Boolean)

Parâmetros

stopTracking
Boolean

Quando true, desanexa todos os itens do DataServiceContext.When true, detaches all items from the DataServiceContext.

Comentários

Quando um item é desanexado, todos os objetos relacionados no grafo de dados também são desanexados do DataServiceContext .When an item is detached, all related objects in the data graph are also detached from the DataServiceContext.

Aplica-se a