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

定义

在所有情况下都会引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

 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 array segment.

返回

将始终引发异常。Always throws an exception.

实现

异常

在所有情况下。In all cases.

注解

此方法始终引发 NotSupportedException,因为无法收缩数组段。This method always throws a NotSupportedException because an array segment cannot be contracted.

适用于