Share via


DataServiceCollection<T>.InsertItem(Int32, T) Method

Definition

Adds a specified item to the collection at the specified index.

protected override void InsertItem (int index, T item);
override this.InsertItem : int * 'T -> unit
Protected Overrides Sub InsertItem (index As Integer, item As T)

Parameters

index
Int32

Index at which to add the item.

item
T

The item to add.

Remarks

Override to prevent additions to the collection in "deferred tracking" mode, and to verify that the item implements INotifyPropertyChanged. Overriding this method will cover items that are added to the collection via Add and Insert.

Applies to