EntitySet<TEntity>.Insert(Int32, TEntity) EntitySet<TEntity>.Insert(Int32, TEntity) EntitySet<TEntity>.Insert(Int32, TEntity) EntitySet<TEntity>.Insert(Int32, TEntity) Method

定义

在索引位置处插入实体。Inserts an entity at an index position.

public:
 virtual void Insert(int index, TEntity entity);
public void Insert (int index, TEntity entity);
abstract member Insert : int * 'Entity -> unit
override this.Insert : int * 'Entity -> unit
Public Sub Insert (index As Integer, entity As TEntity)

参数

index
Int32 Int32 Int32 Int32

表示要插入实体的位置的索引。The index representing the position at which to insert the entity.

entity
TEntity TEntity TEntity TEntity

要插入的实体。The entity to be inserted.

实现

适用于