ReadOnlyCollection<T>.ICollection<T>.Remove(T) Metod

Definition

Tar bort den första förekomsten av ett specifikt objekt från ICollection<T>. Den här implementeringen genererar NotSupportedExceptionalltid .

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

Parametrar

value
T

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

Returer

trueom value har tagits bort från ICollection<T>; annars . false

Implementeringar

Undantag

Alltid kastad.

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ReadOnlyCollection<T> skickas till ett ICollection<T> gränssnitt.

Gäller för