ImmutableList<T>.Remove 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Remove(T) | 从此不可变列表中移除所指定对象的第一个匹配项。 | 
| Remove(T, IEqualityComparer<T>) | 从此不可变列表中移除与指定值匹配的对象的第一个匹配项。 | 
Remove(T)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- 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>)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- 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>
要在搜索中使用的相等性比较器。
返回
已移除对象的新列表,或者此列表(如果指定的对象不在此列表中)。