DataServiceCollection<T>.Clear(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- stopTracking
- Boolean
When true
, detaches all items from the DataServiceContext.
Remarks
When an item is detached, all related objects in the data graph are also detached from the DataServiceContext.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.