EntitySet<TEntity>.Contains Method (TEntity)

 

Specifies whether the EntitySet<TEntity> contains a specific entity.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public bool Contains(
	TEntity entity
)

Parameters

entity
Type: TEntity

The entity.

Return Value

Type: System.Boolean

true if the EntitySet<TEntity> contains the entity; otherwise, false.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top
Show: