다음을 통해 공유


EntitySet<TEntity>.Insert Method

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

Inserts an entity at an index position.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    entity As TEntity _
)
public void Insert(
    int index,
    TEntity entity
)

Parameters

  • index
    Type: System.Int32
    The index representing the position at which to insert the entity.
  • entity
    Type: TEntity
    The entity to be inserted.

Implements

IList<T>.Insert(Int32, T)

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

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