Language

ReadOnlyDictionary.ICollectionValuePair>.Add Method

Definition

Throws a NotSupportedException exception in all cases.

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

Parameters

item
KeyValuePair

The object to add to the dictionary.

Implements

Exceptions

In all cases.

Applies to