Metodo IBackgroundCopyJob::Cancel

Elimina il processo dalla coda di trasferimento e rimuove i file temporanei correlati dal client (download) e dal server (caricamenti).

Sintassi

HRESULT Cancel();

Parametri

Questo metodo non presenta parametri.

Valore restituito

Questo metodo restituisce i valori HRESULT seguenti, nonché altri.

Codice restituito Descrizione
S_OK
Il processo è stato annullato correttamente.
DO_E_INVALID_STATE
Impossibile annullare un processo il cui stato è BG_JOB_STATE_CANCELLED o BG_JOB_STATE_ACKNOWLEDGED.

Commenti

È possibile annullare un processo in qualsiasi momento; Tuttavia, il processo non può essere recuperato dopo l'annullamento.

Requisiti

Requisito Valore
Client minimo supportato
Windows 10 versione 1709 [solo app desktop]
Server minimo supportato
Windows Server, versione 1709 [solo app desktop]
Intestazione
Deliveryoptimization.h
IDL
DeliveryOptimization.idl
Libreria
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyJob è definito come 37668D37-507E-4160-9316-26306D150B12

Vedi anche

IBackgroundCopyJob

IBackgroundCopyJob::Complete

IBackgroundCopyJob::Resume

IBackgroundCopyJob::Suspend