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

정의

ICollection<T>에서 맨 처음 발견되는 특정 개체를 제거합니다. 이 구현은 항상 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>에서 제거할 개체입니다.

반환

항목이 ICollection<T>에서 제거되었으면 true이고, 제거되지 않았으면 false입니다. 이 메서드는 항목이 ICollection<T>에 없는 경우에도 false를 반환합니다.

구현

예외

항상 발생하며 컬렉션은 읽기 전용입니다.

설명

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

적용 대상

추가 정보