Partager via


AppInstance.CancelAllJobs - Méthode

Cancels each currently running lifecycle job for an app instance.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Function CancelAllJobs As ClientResult(Of Boolean)
'Utilisation
Dim instance As AppInstance
Dim returnValue As ClientResult(Of Boolean)

returnValue = instance.CancelAllJobs()
public ClientResult<bool> CancelAllJobs()

Valeur renvoyée

Type : Microsoft.SharePoint.Client.ClientResult<Boolean>
Returns true if any jobs existed for this app instance (and therefore were cancelled). This is the case even if the cancellations had no effect, as in the case where the only job was a job that cannot be cancelled, for example uninstallation. Returns false if no jobs existed.

Remarques

If multiple jobs exist, job cancellation is nontransactional. This means that if an exception is raised by this method due to concurrent modification of jobs, all, none, or some jobs may have been cancelled. In this case, the user should retry the cancellation.

Voir aussi

Référence

AppInstance classe

AppInstance - Membres

Microsoft.SharePoint.Client - Espace de noms