OrderedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Remove Metod

Definition

Tar bort den första förekomsten av ett specifikt objekt från ICollection<T>.

 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

Parametrar

item
TValue

Objektet som ska tas bort från ICollection<T>.

Returer

trueom item har tagits bort från ICollection<T>; annars . false Den här metoden returnerar false även om item det inte finns i den ursprungliga ICollection<T>.

Implementeringar

Gäller för