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

정의

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

 virtual bool System.Collections.Generic.ICollection<TKey>.Remove(TKey item) = System::Collections::Generic::ICollection<TKey>::Remove;
bool ICollection<TKey>.Remove(TKey item);
abstract member System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
override this.System.Collections.Generic.ICollection<TKey>.Remove : 'Key -> bool
Function Remove (item As TKey) As Boolean Implements ICollection(Of TKey).Remove

매개 변수

item
TKey

컬렉션에서 제거할 개체입니다.

반품

컬렉션에서 성공적으로 제거되었으면 />이고, 그렇지 않으면 . 이 메서드는 원래 컬렉션에서 찾을 수 없는 경우에도 item 반환 false 합니다.

구현

예외

모든 경우에.

설명

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

적용 대상