System.Collections.Specialized.NameValueCollection.Clear Method

Invalidates the cached arrays and removes all entries from the System.Collections.Specialized.NameValueCollection.

Syntax

public virtual void Clear ()

Exceptions

TypeReason
NotSupportedExceptionThe current instance is read-only.

Remarks

This method is an O(1) operation.

Requirements

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