语言

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

要插入的项。

实现

例外

value 是 null。

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

为 DoubleCollection 只读。

-或-

具有 DoubleCollection 固定大小。

注解

与典型的实现不同,如果尝试插入 IList<T>.Insert (ArgumentException) 引用,则此实现将引发此实现。

适用于

另请参阅