Share via


ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add Yöntem

Tanım

Her durumda bir NotSupportedException özel durum oluşturur.

 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

Parametreler

item
TKey

Koleksiyona eklenecek nesne.

Uygulamalar

Özel durumlar

Her durumda.

Açıklamalar

Bu üye, açık bir arabirim üyesi uygulamasıdır. Yalnızca örnek bir ICollection<T> arabirime ReadOnlyDictionary<TKey,TValue>.KeyCollection yayınlandığında kullanılabilir. arabirimi, ICollection<T> arabirimini uygulayan Add koleksiyon salt okunur olduğunda yönteminin bir NotSupportedException özel durum oluşturması gerektiğini belirtir.

Şunlara uygulanır