Share via


AppInstance.Recycle method

Creates a job that sends the app instance to the recycle bin.

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

Syntax

'Declaration
Public Function Recycle As ClientResult(Of Guid)
'Usage
Dim instance As AppInstance
Dim returnValue As ClientResult(Of Guid)

returnValue = instance.Recycle()
public ClientResult<Guid> Recycle()

Return value

Type: Microsoft.SharePoint.Client.ClientResult<Guid>
The job identifier of the recycle job.

Remarks

The app instance will stay in the recycle bin until it is restored by Restore(), or uninstalled at the end of the retention period.

See also

Reference

AppInstance class

AppInstance members

Microsoft.SharePoint.Client namespace