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: TEntityThe entity whose presence is questioned.
Return value
Type: System.Boolean
true, if the entity is present; false otherwise..