Share via


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

定义

不能向只读集合插入项。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

参数

index
Int32

从零开始的索引,将在该位置插入 value

value
Object

要插入到集合中的对象。

实现

例外

不能向只读集合插入项。

注解

如果调用,会引发 NotSupportedException

适用于