Export (0) Print
Expand All

NameValueCollection.Clear Method

Invalidates the cached arrays and removes all entries from the NameValueCollection.

[Visual Basic]
Public Sub Clear()
[C#]
public void Clear();
[C++]
public: void Clear();
[JScript]
public function Clear();

Exceptions

Exception Type Condition
NotSupportedException The collection is read-only.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NameValueCollection Class | NameValueCollection Members | System.Collections.Specialized Namespace | InvalidateCachedArrays

Show:
© 2014 Microsoft