Windows Dev Center

DependencyObjectCollection<T>.Clear Method

Removes all objects from the collection.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public void Clear()

Implements

ICollection<T>.Clear()

ExceptionCondition
InvalidOperationException

The method is being called in a CollectionChanged event handler.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft