KeyedByTypeCollection<TItem>.RemoveAll<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除指定類型的所有元素。
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 的物件。