Condividi tramite


Interfaccia IBackgroundCopyFile2

Usare l'interfaccia IBackgroundCopyFile2 per specificare un nuovo nome remoto per il file e recuperare l'elenco di intervalli da scaricare.

L'interfaccia IBackgroundCopyFile2 eredita dall'interfaccia IBackgroundCopyFile .

Per ottenere un puntatore dell'interfaccia IBackgroundCopyFile2 , chiamare il metodo IBackgroundCopyFile::QueryInterface usando __uuidof(IBackgroundCopyFile2 ) per l'identificatore dell'interfaccia. Usare il puntatore dell'interfaccia IBackgroundCopyFile2 per chiamare sia i metodi IBackgroundCopyFile2 che IBackgroundCopyFile2.

Membri

L'interfaccia IBackgroundCopyFile2 eredita da IBackgroundCopyFile. IBackgroundCopyFile2 include anche questi tipi di membri:

Metodi

L'interfaccia IBackgroundCopyFile2 include questi metodi.

Metodo Descrizione
GetFileRanges Recupera la matrice di intervalli da scaricare dall'URL.
SetRemoteName Modifica il nome remoto in un nuovo URL.

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_IBackgroundCopyFile2 è definito come 83E81B93-0873-474D-8A8C-F2018B1A939C

Vedi anche

IBackgroundCopyFile