Collection.Clear Metoda

Definicja

Usuwa wszystkie elementy obiektu Visual Basic Collection .

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

Implementuje

Przykłady

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

Uwagi

Metoda Clear opróżnia kolekcję i resetuje jej Count właściwość do wartości 0.

Dotyczy