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> 介面時,才能使用這個成員。

適用於