Share via


EntitySet<TEntity>.Remove Method (TEntity)

Removes the specified entity from the EntitySet<TEntity>.

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

Syntax

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

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

Parameters

  • entity
    Type: TEntity

    The entity that is removed.

Return Value

Type: System.Boolean
true, if the entity is successfully removed; false if it is not successfully removed or if it is not in the collection.

Implements

ICollection<T>.Remove(T)

See Also

Reference

EntitySet<TEntity> Class

EntitySet<TEntity> Members

Remove Overload

Microsoft.SharePoint.Linq Namespace