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

정의

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

 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

구현

예외

모든 경우

설명

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

적용 대상