Removes the entry with the specified key from the current instance.
- name
- A string containing the key of the entry to remove from the current instance.
Type Reason NotSupportedException The current instance is read-only.
Operation
If name is found, the key name and its associated value are set to null. Removing an element does not alter the capacity of a System.Collections.Specialized.NameValueCollection .This method uses the object.Equals(object) implementation of name to locate name in the current instance. If name is not found in the current instance or is null, no exception is thrown and the current instance is unchanged.
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0