語言

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

定義

從不可變清單中移除特定物件的第一個出現專案。

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

參數

item
T

要移除的物品。

傳回

true若item成功從列表中移除;否則,。 false 如果false原始清單中找不到 ,此方法也會回傳item。

實作

例外狀況

總是被拋出。

備註

此成員為明確介面成員實作。 它只能在實 ImmutableList<T> 例投射到 ICollection<T> 介面時使用。

適用於