DoubleCollection.Insert(Int32, Double) 方法

定義

在指定的索引位置,將 Double 插入至這個 DoubleCollection

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

參數

index
Int32

要插入 value 的索引位置,也就是指定的 Double

value
Double

要插入的項目。

實作

例外狀況

valuenull

index 不是 DoubleCollection 中的有效索引。

DoubleCollection 為唯讀。

-或-

DoubleCollection 具有固定的大小。

備註

不同于 的一般實作 IList<T>.Insert ,如果您嘗試插入Null (Nothing) 參考,這個實作會 ArgumentException 擲回 。

適用於

另請參閱