EntitySet<TEntity>.IndexOf(TEntity) EntitySet<TEntity>.IndexOf(TEntity) EntitySet<TEntity>.IndexOf(TEntity) EntitySet<TEntity>.IndexOf(TEntity) Method

定义

返回实体的索引。Returns the index of the entity.

public:
 virtual int IndexOf(TEntity entity);
public int IndexOf (TEntity entity);
abstract member IndexOf : 'Entity -> int
override this.IndexOf : 'Entity -> int
Public Function IndexOf (entity As TEntity) As Integer

参数

entity
TEntity TEntity TEntity TEntity

要返回其索引的实体。The entity whose index is to be returned.

返回

一个表示索引的整数。An integer representing the index.

实现

适用于