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

System.Collections.Specialized.NameValueCollection.Clear Method

Invalidates the cached arrays and removes all entries from the current instance. [Edit]

public virtual void Clear ()

Exceptions

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

Remarks

The value of each key and value in the current instance is set to null .

If the current instance is empty, it remains unchanged and no exception is thrown.

[Edit]

Requirements

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