IBackgroundCopyJob::Cancel, méthode

Supprime le travail de la file d’attente de transfert et supprime les fichiers temporaires associés du client (téléchargements) et du serveur (chargements).

Syntaxe

HRESULT Cancel();

Paramètres

Cette méthode n’a aucun paramètre.

Valeur retournée

Cette méthode retourne les valeurs HRESULT suivantes, ainsi que d’autres.

Code de retour Description
S_OK
Le travail a été annulé avec succès.
DO_E_INVALID_STATE
Impossible d’annuler un travail dont l’état est BG_JOB_STATE_CANCELLED ou BG_JOB_STATE_ACKNOWLEDGED.

Notes

Vous pouvez annuler un travail à tout moment ; Toutefois, le travail ne peut pas être récupéré après son annulation.

Spécifications

Condition requise Valeur
Client minimal pris en charge
Windows 10, version 1709 [applications de bureau uniquement]
Serveur minimal pris en charge
Windows Server, version 1709 [applications de bureau uniquement]
En-tête
Deliveryoptimization.h
IDL
DeliveryOptimization.idl
Bibliothèque
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyJob est défini comme 37668D37-507E-4160-9316-26306D150B12

Voir aussi

IBackgroundCopyJob

IBackgroundCopyJob::Complete

IBackgroundCopyJob::Resume

IBackgroundCopyJob::Suspend