SPRecycleBinItemCollection.GetItemById method
Gets the Recycle Bin item with the specified ID from the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetItemById ( _
id As Guid _
) As SPRecycleBinItem
'Usage
Dim instance As SPRecycleBinItemCollection
Dim id As Guid
Dim returnValue As SPRecycleBinItem
returnValue = instance.GetItemById(id)
public SPRecycleBinItem GetItemById(
Guid id
)
Parameters
id
Type: System.GuidA System.Guid object that specifies the item to retrieve.
Return value
Type: Microsoft.SharePoint.SPRecycleBinItem
The recycle bin item with the specified ID.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The recycle bin item with the id does not exist in the collection. |
Remarks
This method gets the recycle bin item with the specified ID from the collection.
See also
Reference
SPRecycleBinItemCollection class