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

定义

指定 EntitySet<TEntity> 是否包含特定实体。Specifies whether the EntitySet<TEntity> contains a specific entity.

public:
 virtual bool Contains(TEntity entity);
public bool Contains (TEntity entity);
abstract member Contains : 'Entity -> bool
override this.Contains : 'Entity -> bool
Public Function Contains (entity As TEntity) As Boolean

参数

entity
TEntity TEntity TEntity TEntity

实体。The entity.

返回

如果 EntitySet<TEntity> 包含该实体,则为 true;否则为 falsetrue if the EntitySet<TEntity> contains the entity; otherwise, false.

实现

适用于