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

定义

在所有情况下均引发 NotSupportedExceptionThrows NotSupportedException 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 item to add to the end of the array.

实现

注解

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

适用于