Dictionary<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>.

반품

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

구현

예외

항상 throw됩니다.

설명

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

적용 대상

추가 정보