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

要移除的集合中的項目型別。

傳回

包含來自原始集合之型別 TCollection<T>

適用於