SPRecycleBinItemCollection.Delete method
Deletes the specified items from the Recycle Bin permanently.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Delete ( _
ids As Guid() _
)
'Usage
Dim instance As SPRecycleBinItemCollection
Dim ids As Guid()
instance.Delete(ids)
public void Delete(
Guid[] ids
)
Parameters
ids
Type: []The IDs of the items to delete.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Some of the items do not exist in the recycle bin item collection. |
Remarks
This method deletes the items that are associated with the values in ids.
See also
Reference
SPRecycleBinItemCollection class