語言

ImmutableList<T>.Remove 方法

定義

多載

名稱 Description
Remove(T)

從這個不可變清單中移除第一個出現的指定物件。

Remove(T, IEqualityComparer<T>)

從這個不可變清單中,移除符合指定值之物件的第一個相符專案。

Remove(T)

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs

從這個不可變清單中移除第一個出現的指定物件。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Remove(T value);
public System.Collections.Immutable.ImmutableList<T> Remove(T value);
member this.Remove : 'T -> System.Collections.Immutable.ImmutableList<'T>
Public Function Remove (value As T) As ImmutableList(Of T)

參數

value
T

要移除的物品。

傳回

移除該物件的新清單,或若指定物件不在列表中,則是這個清單。

適用於

Remove(T, IEqualityComparer<T>)

來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs
來源:
ImmutableList_1.cs

從這個不可變清單中,移除符合指定值之物件的第一個相符專案。

public:
 System::Collections::Immutable::ImmutableList<T> ^ Remove(T value, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public System.Collections.Immutable.ImmutableList<T> Remove(T value, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public System.Collections.Immutable.ImmutableList<T> Remove(T value, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.Remove : 'T * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Remove (value As T, equalityComparer As IEqualityComparer(Of T)) As ImmutableList(Of T)

參數

value
T

要從清單中移除的元素值。

equalityComparer
IEqualityComparer<T>

搜尋時使用的等式比較器。

傳回

移除該物件的新清單,或若指定物件不在列表中,則是這個清單。

適用於