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

定义

从集合中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the collection.

 virtual bool System.Collections.Generic.ICollection<T>.Remove(T item) = System::Collections::Generic::ICollection<T>::Remove;
bool ICollection<T>.Remove (T item);
Function Remove (item As T) As Boolean Implements ICollection(Of T).Remove

参数

item
T

要从集合中删除的对象。The object to remove from the collection.

返回

如果从集合中成功移除了 true,则为 item;否则为 falsetrue if item was successfully removed from the collection; otherwise, false.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedSet<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ImmutableSortedSet<T> instance is cast to an ICollection<T> interface.

System.object NuGet 包System.Collections.Immutable NuGet package

关于不可变集合以及如何安装About immutable collections and how to install

适用于