Click or drag to resize
SharePointFileInfoProviderRecycleFileInternal Method
Moves the specified file to the recycle bin of the SharePoint server. Deletes the file from the local library. Returns the identifier of the new recycle bin item on SharePoint. Recycling a non-existent file within SharePoint library (i.e. file is out of sync) returns empty GUID and deletes the file from the local library as well.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 13.0.131
Syntax
C#
protected virtual Guid RecycleFileInternal(
	SharePointFileInfo fileInfo
)

Parameters

fileInfo
Type: CMS.SharePointSharePointFileInfo
SharePoint file to be recycled on the SharePoint server

Return Value

Type: Guid
GUID of the new recycle bin item on SharePoint, or Empty when file does not exist.
Exceptions
ExceptionCondition
SharePointConnectionNotFoundExceptionThrown when the SharePoint library has no valid connection defined.
ExceptionThrown in case of unexpected error condition.
See Also