Windows Dev Center

IDictionary.Clear Method

Removes all elements from the IDictionary object.

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

'Declaration
Sub Clear

ExceptionCondition
NotSupportedException

The IDictionary object is read-only.

The following code example demonstrates how to implement the Clear method. This code example is part of a larger example provided for the IDictionary class.


Public Sub Clear() Implements IDictionary.Clear
   ItemsInUse = 0
End Sub


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft