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

定义

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

 virtual void System.Collections.Generic.ICollection<T>.Add(T item) = System::Collections::Generic::ICollection<T>::Add;
void ICollection<T>.Add (T item);
abstract member System.Collections.Generic.ICollection<T>.Add : 'T -> unit
override this.System.Collections.Generic.ICollection<T>.Add : 'T -> unit
Sub Add (item As T) Implements ICollection(Of T).Add

参数

item
T

要添加到数组段的对象。The object to add to the array segment.

实现

例外

在所有情况下。In all cases.

注解

此方法始终引发, NotSupportedException 因为不能扩展数组段。This method always throws a NotSupportedException because an array segment cannot be expanded.

适用于