DoubleCollection.Insert(Int32, Double) Metoda

Definicja

Wstawia element Double do tego DoubleCollection w określonym indeksie.

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)

Parametry

index
Int32

Indeks, w którym ma być wstawiony value, określony Doubleelement .

value
Double

Element do wstawienia.

Implementuje

Wyjątki

value to null.

index nie jest prawidłowym indeksem w obiekcie DoubleCollection.

Element DoubleCollection jest tylko do odczytu.

-lub- Element DoubleCollection ma stały rozmiar.

Uwagi

W przeciwieństwie do typowych implementacji IList<T>.Insertprogramu ta implementacja zgłasza ArgumentException błąd, jeśli próbujesz wstawić odwołanie o wartości null (nic).

Dotyczy

Zobacz też