ISharePointFileServiceRecycleFile Method |
Moves the file specified by serverRelativeUrl to the recycle bin of the SharePoint server.
Returns the identifier of the new recycle bin item.
Recycling a non-existent file within SharePoint site returns empty GUID.
Throws exception when serverRelativeUrl is invalid (does not point within any SharePoint site).
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax Guid RecycleFile(
string serverRelativeUrl
)
Parameters
- serverRelativeUrl
- Type: SystemString
Server relative URL of the file.
Return Value
Type:
GuidGUID of the new recycle bin item, or
Empty when file does not exist.
Exceptions See Also