SynchronizedReadOnlyCollection<T>.IList<T>.Insert 方法

定義

如果呼叫,則會擲回 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

要插入集合的物件。

實作

例外狀況

這些項目無法插入至唯讀的集合中。

適用於