Share via


EntityCollection<TEntity>.Contains(TEntity) Method

Definition

Determines whether a specific object exists in the collection.

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

Parameters

item
TEntity

The object to locate in the EntityCollection<TEntity>.

Returns

true if the object is found in the EntityCollection<TEntity>; otherwise, false.

Implements

Applies to