ReadOnlyCollection<T>.ICollection<T>.Remove(T) 方法

定義

ICollection<T> 移除特定物件之第一個符合的元素。 這個實作一律會擲回 NotSupportedException

 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

參數

value
T

要從 ICollection<T> 移除的物件。

傳回

如果 true 已成功從 value 中移除,則為 ICollection<T>,否則為 false

實作

例外狀況

一律擲回。

備註

這個成員是明確介面成員實作, 只有在 ReadOnlyCollection<T> 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於