SynchronizedReadOnlyCollection<T>.IList<T>.Insert(Int32, T) SynchronizedReadOnlyCollection<T>.IList<T>.Insert(Int32, T) SynchronizedReadOnlyCollection<T>.IList<T>.Insert(Int32, T) Method

定义

如果调用,会引发 NotSupportedExceptionThrows a NotSupportedException if called.

 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);
Sub Insert (index As Integer, value As T) Implements IList(Of T).Insert

参数

index
Int32 Int32 Int32

从零开始的索引,将在该位置插入 valueThe zero-based index at which value is to be inserted.

value
T T T

要插入到集合中的对象。The object to insert into the collection.

实现

异常

不能向只读集合插入项。Items cannot be inserted into a read-only collection.

适用于