Collection.Clear Metod

Definition

Tar bort alla element i ett Visual Basic Collection-objekt.

public:
 void Clear();
public void Clear();
member this.Clear : unit -> unit
Public Sub Clear ()

Implementeringar

Exempel

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

Kommentarer

Metoden Clear tömmer samlingen och återställer dess Count egenskap till 0.

Gäller för