EntityList<TEntity>.RecycleAllOnSubmit Method

Marks the specified entities to be put in the Recycle Bin on the next call of SubmitChanges().

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

Syntax

'Declaration
Public Sub RecycleAllOnSubmit ( _
    entities As IEnumerable(Of TEntity) _
)
'Usage
Dim instance As EntityList
Dim entities As IEnumerable(Of TEntity)

instance.RecycleAllOnSubmit(entities)
public void RecycleAllOnSubmit(
    IEnumerable<TEntity> entities
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

At least one member of entities is a null reference (Nothing in Visual Basic).

InvalidOperationException

Object tracking is not enabled for the DataContext object.

- or -

At least one member of entities is not of the same type as the list items.

Remarks

entities are usually list items, but one or more can be a detached entities of the same type as the list items.

See Also

Reference

EntityList<TEntity> Class

EntityList<TEntity> Members

Microsoft.SharePoint.Linq Namespace