ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Clear 메서드

정의

NotSupportedException 모든 경우에 예외를 throw합니다.

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

구현

예외

모든 경우에.

설명

이 멤버는 명시적 인터페이스 멤버 구현입니다. 인스턴스가 인터페이스로 ReadOnlyDictionary<TKey,TValue>.KeyCollection 캐스팅 ICollection<T> 되는 경우에만 사용할 수 있습니다. 인터페이스 ICollection<T>Clear 메서드가 인터페이스를 구현하는 컬렉션이 읽기 전용일 때 NotSupportedException 예외를 throw 해야 한다고 명시합니다.

적용 대상