ImmutableList<T>.ICollection<T>.Remove(T) 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从不可变列表中移除特定对象的第一个匹配项。
 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 -> boolFunction Remove (item As T) As Boolean Implements ICollection(Of T).Remove参数
- item
- T
要移除的对象。
返回
如果从列表中成功移除了 item,则为 true;否则为 false。 如果在原始列表中未找到 item,该方法也会返回 false。
实现
例外
始终引发。
注解
此成员是显式接口成员的实现。 它只能在 ImmutableList<T> 实例被强制转换为 ICollection<T> 接口时使用。