ImmutableHashSet<T>.Builder.ICollection<T>.Add(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將專案加入至哈希集。
virtual void System.Collections.Generic.ICollection<T>.Add(T item) = System::Collections::Generic::ICollection<T>::Add;
void ICollection<T>.Add(T item);
abstract member System.Collections.Generic.ICollection<T>.Add : 'T -> unit
override this.System.Collections.Generic.ICollection<T>.Add : 'T -> unit
Sub Add (item As T) Implements ICollection(Of T).Add
參數
- item
- T
要加入這套的物品。
實作
例外狀況
該集合為唯讀。
備註
此成員為明確介面成員實作。 它只能在實 ImmutableHashSet<T>.Builder 例投射到 ICollection<T> 介面時使用。