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

정의

에서 특정 개체의 첫 번째 항목을 제거합니다 ICollection<T>. 이 구현은 항상 을 throw합니다 NotSupportedException.

 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

에서 제거할 개체입니다 ICollection<T>.

반품

true 항목이 성공적으로 제거되면 이고 ICollection<T>, false그렇지 않으면 입니다. 이 메서드는 항목을 찾을 수 없는 경우에도 반환 false 합니다 ICollection<T>.

구현

예외

항상 throw됨; 컬렉션이 읽기 전용입니다.

설명

구현은 개체의 같음을 결정하는 방법에 따라 달라질 수 있습니다. 예를 들어 List<T> 사용자가 키를 비교하는 데 사용할 구현을 Default 지정할 수 있도록 하는 반면SortedDictionary<TKey,TValue>, 사용 IComparer<T>

적용 대상

추가 정보