Dictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Remove 메서드

정의

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

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

매개 변수

item
TValue

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

반품

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

구현

예외

항상 throw됩니다.

설명

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

적용 대상

추가 정보