Mono Class Library: System.Collections.Specialized.NameValueCollection Overview | Members

System.Collections.Specialized.NameValueCollection.Remove Method

Removes the entry with the specified key from the current instance. [Edit]

public virtual void Remove (string name)

Parameters

name
A string containing the key of the entry to remove from the current instance. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThe current instance is read-only. [Edit]

Remarks

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.

[Edit]

Requirements

Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0