Contains Method

EntitySet(Of 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(Of TEntity) contains a specific entity.

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

'Declaration
Public Function Contains ( _
	entity As TEntity _
) As Boolean

Parameters

entity
Type: TEntity
The entity.

Return Value

Type: System.Boolean
true if the EntitySet(Of TEntity) contains the entity; otherwise, false.

Implements

ICollection(Of T).Contains(T)

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft