語言

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> 介面時使用。

適用於