Share via


Dictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add Metode

Definisi

Menambahkan item ke ICollection<T>. Implementasi ini selalu melempar 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

Parameter

item
TKey

Objek yang akan ditambahkan ke ICollection<T>.

Penerapan

Pengecualian

Selalu dilemparkan.

Berlaku untuk

Lihat juga