ArraySegment<T>.ICollection<T>.Remove(T) ArraySegment<T>.ICollection<T>.Remove(T) ArraySegment<T>.ICollection<T>.Remove(T) Method

定义

从数组段中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the array segment.

 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 T T

要从数组段中移除的对象。The object to remove from the array segment.

返回

如果从数组段中成功移除了 item,则为 true;否则为 falsetrue if item was successfully removed from the array segment; otherwise, false. 如果在数组段中找不到 item,此方法也会返回 falseThis method also returns false if item is not found in the array segment.

实现

异常

数组段是只读的。The array segment is read-only.

注解

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

适用于