SortedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Remove(TValue) 메서드
정의
ICollection<T>에서 맨 처음 발견되는 특정 개체를 제거합니다.Removes the first occurrence of a specific object from the ICollection<T>. 이 구현은 항상 NotSupportedException을 발생시킵니다.This implementation always throws a NotSupportedException.
virtual bool System.Collections.Generic.ICollection<TValue>.Remove(TValue item) = System::Collections::Generic::ICollection<TValue>::Remove;
bool ICollection<TValue>.Remove (TValue item);
Function Remove (item As TValue) As Boolean Implements ICollection(Of TValue).Remove
매개 변수
- item
- TValue
ICollection<T>에서 제거할 개체입니다.The object to remove from the ICollection<T>.
반환
item
이 ICollection<T>에서 제거되면 true
이고, 그렇지 않으면 false
입니다.true
if item
is successfully removed from the ICollection<T>; otherwise, false
. 이 메서드는 false
가 item
에 없는 경우에도 ICollection<T>를 반환합니다.This method also returns false
if item
is not found in the ICollection<T>.
구현
예외
항상 발생하며 컬렉션은 읽기 전용입니다.Always thrown; the collection is read-only.
설명
개체의 같음 여부를 결정 하는 방법의 구현을 달라질 수 있습니다. 예를 들어 List<T> 사용 하 여 Default반면 SortedDictionary<TKey,TValue> 사용자 지정할 수 있습니다는 IComparer<T> 키를 비교 하는 데 사용할 구현입니다.Implementations can vary in how they determine equality of objects; for example, List<T> uses Default, whereas SortedDictionary<TKey,TValue> allows the user to specify the IComparer<T> implementation to use for comparing keys.