Share via


SP.RecycleBinItemCollection.restoreAll() Method

Applies to: SharePoint Foundation 2010

Restores all recycle bin items to their original locations.

SP.RecycleBinItemCollection.restoreAll();

Applies To

SP.RecycleBinItemCollection Class

Exceptions

Exceptions

Descriptions

SPException

Another file or folder with the same name already exists in the original location. Error code: -2147024816.

SPException

Another list with the same name already exists in the original location. Error code: - 2147024713.

SPException

Recycle bin item is the child of a list, list item, or document that does not exist. Error code: -2147022917.

SPException

Recycle bin item contains duplicate field values for a field where Field.AllowDuplicateValues is false. Error code: - 2130575168.

SPException

Recycle bin item has one or more lookup field values that do not exist in the data source that is the target of the lookup field. Error code: - 2130575156.

SPQueryThrottledException

Throttling limit is exceeded by the operation. Error code: - 2147024860.

ArgumentException

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

UnauthorizedAccessException

The current user has insufficient permissions. Error code: - 2147024891.

See Also

Reference

SP.RecycleBinItemCollection Methods

SP.RecycleBinItemCollection Properties

SP Namespace