Clear() method

Removes all items from the collection.

Visual Basic syntax

Public Overrides Sub Clear ()

C# syntax

public override void Clear ()