Share via


RecycleBinItemCollection.GetById method

Returns the Recycle Bin item with the specified identifier from the collection.

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

Syntax

'Declaration
Public Function GetById ( _
    id As Guid _
) As RecycleBinItem
'Usage
Dim instance As RecycleBinItemCollection
Dim id As Guid
Dim returnValue As RecycleBinItem

returnValue = instance.GetById(id)
public RecycleBinItem GetById(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    Specifies the identifier of the Recycle Bin item.

Return value

Type: Microsoft.SharePoint.Client.RecycleBinItem
Returns a RecycleBinItem instance representing the Recycle Bin item with the specified identifier from the collection..

Exceptions

Exception Condition
[System.ArgumentException]

Recycle Bin item does not exist. Error code: -2147024809.

See also

Reference

RecycleBinItemCollection class

RecycleBinItemCollection members

Microsoft.SharePoint.Client namespace