Adds an entry with the provided key and value to the current instance.
Type Reason ArgumentNullException key is null. ArgumentException An entry with the same key already exists in the current instance. NotSupportedException The current instance is read-only or has a fixed size.
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.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0