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