AdditionalPropertiesDictionary<TValue>.ICollection<KeyValuePair<String,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<System.Collections.Generic.KeyValuePair<System.String,TValue>>.Remove(System::Collections::Generic::KeyValuePair<System::String ^, TValue> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, TValue>>::Remove;
bool ICollection<KeyValuePair<string,TValue>>.Remove(System.Collections.Generic.KeyValuePair<string,TValue> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,TValue>>.Remove : System.Collections.Generic.KeyValuePair<string, 'Value> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,TValue>>.Remove : System.Collections.Generic.KeyValuePair<string, 'Value> -> bool
Function Remove (item As KeyValuePair(Of String, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of String, TValue)).Remove

Parametrar

item
KeyValuePair<String,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