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

要移除的物件。

傳回

如果 item 從清單中成功移除,則為 true;否則為 false。 若 item 沒有在原本的清單中找到,則這個方法也會回傳 false

實作

例外狀況

一律擲回。

備註

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

適用於