Int32Collection.Insert(Int32, Int32) 方法

定義

Int32 插入集合內的指定位置。

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 的索引位置。

value
Int32

在集合中要插入的 Int32

實作

例外狀況

index 不是 Int32Collection 中的有效索引。

Int32Collection 為唯讀。

-或- Int32Collection 具有固定的大小。

適用於

另請參閱