Condividi tramite


DataServiceCollection<T>.InsertItem Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As T _
)
protected override void InsertItem(
    int index,
    T item
)

Parameters

  • item
    Type: T
    The item to add.

Remarks

When you are manually tracking changes to the collection, you must override the InsertItem method to prevent items from being automatically added to the collection.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.