Dictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add 方法

定義

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

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

參數

item
TKey

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

實作

例外狀況

一律擲回。

適用於

另請參閱