Int32Collection.Insert(Int32, Int32) 方法

定义

在集合中的特定位置插入 Int32Inserts an Int32 into a specific location within the collection.

public:
 virtual void Insert(int index, int value);
public void Insert (int index, int value);
abstract member Insert : int * int -> unit
override this.Insert : int * int -> unit
Public Sub Insert (index As Integer, value As Integer)

参数

index
Int32

Int32 所插入到的索引位置。The index position at which the Int32 is inserted.

value
Int32

要在集合中插入的 Int32The Int32 to insert in the collection.

实现

异常

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

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

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

适用于

另请参阅