StringDictionary.Clear Method ()


Removes all entries from the StringDictionary.

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

abstract Clear : unit -> unit
override Clear : unit -> unit

Exception Condition

The StringDictionary is read-only.

This method is an O(n) operation, where n is Count.

The following code example demonstrates how to add and remove elements from a StringDictionary.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top