Mono Class Library: System.Collections.IDictionary Overview | MembersSystem.Collections.IDictionary.Add Method |
Adds an entry with the provided key and value to the current instance. [Edit]
|
Type Reason ArgumentNullException key is null. [Edit] ArgumentException An entry with the same key already exists in the current instance. [Edit] NotSupportedException The current instance is read-only or has a fixed size. [Edit]
If the specified key already exists in the current instance, this method throws a ArgumentException exception but does not modify the associated value.
Operation
As described above. [Edit]
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0