Collection.Clear 메서드

정의

Visual Basic Collection 개체의 모든 요소를 삭제합니다.

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

구현

예제

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

설명

메서드는 Clear 컬렉션을 비우고 해당 Count 속성을 0으로 다시 설정합니다.

적용 대상