KeyedByTypeCollection<TItem>.RemoveAll<T> 方法

定义

从集合中移除指定类型的所有元素。

public:
generic <typename T>
 System::Collections::ObjectModel::Collection<T> ^ RemoveAll();
public System.Collections.ObjectModel.Collection<T> RemoveAll<T>();
member this.RemoveAll : unit -> System.Collections.ObjectModel.Collection<'T>
Public Function RemoveAll(Of T) () As Collection(Of T)

类型参数

T

要删除的集合中的项的类型。

返回

Collection<T>包含原始集合中类型的T对象。

适用于