Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
entities
Type: System.Collections.Generic.IEnumerable<TEntity>The entities to be recycled.
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.