語言

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

收藏中要移除的物品類型。

傳回

the that Collection<T> 包含原始集合中型別 T 的物件。

適用於