ImmutableHashSet<T>.ICollection<T>.Clear 方法

定義

將所有項目從這個資料集移除。

 virtual void System.Collections.Generic.ICollection<T>.Clear() = System::Collections::Generic::ICollection<T>::Clear;
void ICollection<T>.Clear ();
abstract member System.Collections.Generic.ICollection<T>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<T>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of T).Clear

實作

例外狀況

集合是唯讀的。

備註

這個成員是明確介面成員實作, 只有在 ImmutableHashSet<T> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於