Share via


EntitySet<TEntity>.Contains method (TEntity)

Indicates whether a specified entity is in the EntitySet<TEntity>.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

'Declaration
Public Function Contains ( _
    entity As TEntity _
) As Boolean
'Usage
Dim instance As EntitySet
Dim entity As TEntity
Dim returnValue As Boolean

returnValue = instance.Contains(entity)
public bool Contains(
    TEntity entity
)

Parameters

  • entity
    Type: TEntity

    The entity whose presence is questioned.

Return value

Type: System.Boolean
true, if the entity is present; false otherwise..

Implements

ICollection<T>.Contains(T)

See also

Reference

EntitySet<TEntity> class

EntitySet<TEntity> members

Contains overload

Microsoft.SharePoint.Linq namespace