Share via


MatchCollection.IList.Clear 메서드

정의

컬렉션에서 모든 항목을 제거합니다.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.Clear

구현

예외

컬렉션이 읽기 전용입니다.

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, MatchCollection 인스턴스가 IList 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

이 메서드의 구현은 컬렉션의 용량 및 처리 ICollection.Count 방법에 따라 달라질 수 있습니다. 일반적으로 개수는 0으로 설정되고 컬렉션 요소의 다른 개체에 대한 참조도 해제됩니다. 용량을 0 또는 기본값으로 설정하거나 변경되지 않은 상태로 유지할 수 있습니다.

적용 대상