Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EntitySet<TEntity>.Contains Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Implements

ICollection<T>.Contains(T)

Windows Phone OS

Supported in: 8.1, 8.0

Show: