Edytuj

Udostępnij za pośrednictwem


FreezableCollection<T>.Insert(Int32, T) Method

Definition

Inserts the specified object into the FreezableCollection<T> at the specified index.

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

Parameters

index
Int32

The zero-based index at which value should be inserted.

value
T

The object to insert.

Implements

Exceptions

value is null.

index is less than 0.

-or-

index is greater than Count.

The FreezableCollection<T> is frozen (its IsFrozen property is true).

Applies to