Array.IList.Insert(Int32, Object) Array.IList.Insert(Int32, Object) Array.IList.Insert(Int32, Object) Method

定义

IList 中的指定索引处插入一个项。Inserts an item to the IList at the specified index.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
Sub Insert (index As Integer, value As Object) Implements IList.Insert

参数

index
Int32 Int32 Int32

应插入 value 的索引位置。The index at which value should be inserted.

value
Object Object Object

要插入的对象。The object to insert.

实现

异常

index 不是 IList 中的有效索引。index is not a valid index in the IList.

IList 为只读。The IList is read-only.

-or- IList 具有固定的大小。The IList has a fixed size.

valueIList 中是 null 引用。value is null reference in the IList.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IList 接口时使用。It can be used only when the Array instance is cast to an IList interface.

适用于