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