SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Clear 메서드

정의

ICollection<T>에서 항목을 모두 제거합니다. 이 구현은 항상 NotSupportedException을 발생시킵니다.

 virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear ();
abstract member System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TValue).Clear

구현

예외

항상 발생하며 컬렉션은 읽기 전용입니다.

설명

속성이 Count 0으로 설정되고 컬렉션 요소의 다른 개체에 대한 참조도 해제됩니다.

적용 대상

추가 정보