Collection.Clear Method ()

 

Deletes all elements of a Visual Basic Collection object.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public void Clear()

The Clear method empties the collection and resets its Count property to 0.

Dim customers As New Microsoft.VisualBasic.Collection()
' Insert code that adds customers to collection.
customers.Clear()

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: