語言

ReadOnlyCollection<T>.IList<T>.Insert(Int32, T) 方法

定義

在指定的索引處插入一個項目 IList<T> 。 此實作總是拋 NotSupportedException出 。

 virtual void System.Collections.Generic.IList<T>.Insert(int index, T value) = System::Collections::Generic::IList<T>::Insert;
void IList<T>.Insert(int index, T value);
abstract member System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
override this.System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
Sub Insert (index As Integer, value As T) Implements IList(Of T).Insert

參數

index
Int32

應插入的以零為基礎的索引 value 。

value
T

要插入 IList<T>的物件。

實作

例外狀況

總是被拋出。

備註

此成員為明確介面成員實作。 它只能在實 ReadOnlyCollection<T> 例投射到 IList<T> 介面時使用。

適用於