Removes all elements from the IDictionary object.
Sub Clear
Dim instance As IDictionary instance.Clear()
void Clear()
function Clear()
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
public void Clear() { ItemsInUse = 0; }
public: virtual void Clear() { itemsInUse = 0; }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune