Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDictionary.Clear Method

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

[Visual Basic]
Sub Clear()
void Clear();
void Clear();
function Clear();


Exception Type Condition
NotSupportedException The IDictionary is read-only.


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

© 2016 Microsoft