Поделиться через


SPRecycleBinItemCollection Class

Represents a collection of SPRecycleBinItem objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPRecycleBinItemCollection

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPRecycleBinItemCollection _
    Inherits SPBaseCollection

Dim instance As SPRecycleBinItemCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPRecycleBinItemCollection : SPBaseCollection

Remarks

To return an SPRecycleBinItemCollection object that represents the collection of items in the end-user (Web site) or site-collection Recycle Bin, use either the RecycleBin property of the SPWeb class, or the RecycleBin property of the SPSite class.

Use an indexer to return a single list item from the collection. For example, if the collection is assigned to a variable named myRecycleBinItems, use myRecycleBinItems[index] in C#, or myRecycleBinItems(index) in Visual Basic, where index is the index number of the item in the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPRecycleBinItemCollection Members

Microsoft.SharePoint Namespace