SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add 方法

定義

將項目加入至 ICollection<T>。 這個實作一律會擲回 NotSupportedException

 virtual void System.Collections.Generic.ICollection<TValue>.Add(TValue item) = System::Collections::Generic::ICollection<TValue>::Add;
void ICollection<TValue>.Add (TValue item);
abstract member System.Collections.Generic.ICollection<TValue>.Add : 'Value -> unit
override this.System.Collections.Generic.ICollection<TValue>.Add : 'Value -> unit
Sub Add (item As TValue) Implements ICollection(Of TValue).Add

參數

item
TValue

要加入至 ICollection<T> 的物件。

實作

例外狀況

一律擲回;這個集合是唯讀的。

適用於

另請參閱