語言

DoubleCollection.Insert(Int32, Double) 方法

定義

在指定的索引處插入 a DoubleDoubleCollection 。

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

要插入的物品。

實作

例外狀況

value 是 null。

index 在 中 不是有效的索引 DoubleCollection。

這是 DoubleCollection 唯讀的。

-或-

它 DoubleCollection 有固定尺寸。

備註

與典型的 實IList<T>.Insert作不同,這個實作會在你嘗試插入ArgumentExceptionNothing)參考時拋出 。

適用於

另請參閱