Share via


Clear Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Removes all elements from the IDictionary object.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Sub Clear
void Clear()
void Clear()
abstract Clear : unit -> unit 
function Clear()

Exceptions

Exception Condition
NotSupportedException

The IDictionary object is read-only.

.NET Framework Security

See Also

Reference

IDictionary Interface

System.Collections Namespace