This documentation is archived and is not being maintained.

IDictionary.Clear Method

When implemented by a class, removes all elements from the IDictionary.

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

Exceptions

Exception Type Condition
NotSupportedException The IDictionary 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

IDictionary Interface | IDictionary Members | System.Collections Namespace

Show: