System.Collections.ObjectModel.ObservableCollection<T>.ClearItems Method

Removes all items from the collection.

Syntax

protected override void ClearItems ()

Remarks

The base class calls this method when the list is being cleared. This implementation raises the System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged event.

For more information, see the Collection`1.ClearItems method of the System.Collections.ObjectModel.Collection`1 base class.

Requirements

Namespace: System.Collections.ObjectModel
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0