RemoveAll(T) Method
Collapse the table of content
Expand the table of content

KeyedByTypeCollection<TItem>.RemoveAll<T> Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Removes all of the elements of a specified type from the collection.

Namespace:  System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Collection<T> RemoveAll<T>()

Type Parameters

T

The type of item in the collection to remove.

Return Value

Type: System.Collections.ObjectModel.Collection<T>
The Collection<T> that contains the objects of type T from the original collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft