Windows Dev Center

ObservableCollection(Of T).ClearItems Method

Removes all items from the collection.

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

'Declaration
Protected Overrides Sub ClearItems

ExceptionCondition
InvalidOperationException

The method is being called in a PropertyChanged or CollectionChanged event handler.

This implementation raises the CollectionChanged event.

For more information, see the ClearItems method of the Collection(Of T) base class.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft