Compartir a través de


RecycleBinItemCollection.GetById Method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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