語言

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>的物件。

實作

例外狀況

總是被拋棄;本合集僅供閱讀。

適用於

另請參閱