Share via


EntitySet<TEntity>.Insert Method

Inserts a specified entity into the EntitySet<TEntity> at the specified index.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    item As TEntity _
)
'Usage
Dim instance As EntitySet
Dim index As Integer
Dim item As TEntity

instance.Insert(index, item)
public void Insert(
    int index,
    TEntity item
)

Parameters

  • index
    Type: System.Int32

    The point in the collection where the new entity is inserted.

  • item
    Type: TEntity

    The entity that is inserted.

Implements

IList<T>.Insert(Int32, T)

See Also

Reference

EntitySet<TEntity> Class

EntitySet<TEntity> Members

Microsoft.SharePoint.Linq Namespace