ImmutableHashSet<T>.ICollection<T>.Remove(T) 方法
定义
从集内移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the set.
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
要从集内移除的对象。The object to remove from the set.
返回
如果该元素已成功移除,则为 true;否则为 false。true if the element is successfully removed; otherwise, false.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableHashSet<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ImmutableHashSet<T> instance is cast to an ICollection<T> interface.