ImmutableHashSet<T>.ICollection<T>.Clear 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從此集合中移除所有專案。
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> 介面時使用。