Aracılığıyla paylaş


EntitySet<TEntity>.Contains Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the EntitySet<TEntity> contains the entity; otherwise, false.

Implements

ICollection<T>.Contains(T)

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.