Mono Class Library: System.Collections.Specialized.NameValueCollection Overview | MembersSystem.Collections.Specialized.NameValueCollection.Set Method |
Sets the value of the specified entry in the current instance to the specified value. [Edit]
|
Type Reason NotSupportedException The current instance is read-only. [Edit]
Operation
If the specified key already exists in the current instance, this method overwrites the existing values with the specified value. (If the existing value contains a string of multiple comma-delimited values, the complete string is replaced with a single instance of value.) If the specified key does not exist in the current instance, this method creates a new entry using the specified key and the specified value.Usage
Use the NameValueCollection.Add(NameValueCollection) method to add the new value to the existing list of values. [Edit]
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0