Mono Class Library: System.Collections.Specialized.NameValueCollection Overview | MembersSystem.Collections.Specialized.NameValueCollection.Add Method |
Adds an entry with the specified key and value to the current instance. [Edit]
|
Type Reason NotSupportedException The current instance is read-only. [Edit]
Operation
As described above.If the specified key already exists in the current instance, the specified value is added to the existing comma-separated list of values associated with the same key.
Attempting to assign the same value to an existing key adds a new value to that key, thus providing two (or more) copies of the same value associated with the key.
Note to Inheritors
Override this method to customize the default behavior in a type derived from the current type.Usage
Use this method to add an entry to the current instance. [Edit]
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0