KeyedByTypeCollection<TItem>.RemoveAll<T> Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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>()

Return Value

Type: System.Collections.ObjectModel.Collection<T>

The Collection<T> that contains the objects of type T from the original collection.

Type Parameters


The type of item in the collection to remove.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top