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이 성공적으로 제거되었으면 true이고, 그렇지 않으면 false입니다. 이 메서드는 item이 원래 컬렉션에 없는 경우에도 false를 반환합니다.

구현

예외

모든 경우

설명

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

적용 대상