Condividi tramite


Metodo IBackgroundCopyError::GetFile

Recupera un puntatore dell'interfaccia all'oggetto file associato all'errore.

Sintassi

HRESULT GetFile(
  [out] IBackgroundCopyFile **ppFile
);

Parametri

ppFile [out]

Puntatore dell'interfaccia IBackgroundCopyFile i cui metodi vengono usati per determinare i nomi di file locali e remoti associati all'errore. Il parametro ppFile è impostato su NULL se l'errore non è associato al file locale o remoto. Al termine, rilasciare ppFile.

Valore restituito

Questo metodo restituisce i valori HRESULT seguenti.

Codice restituito Descrizione
S_OK
È stato recuperato correttamente un puntatore dell'interfaccia all'oggetto file.
DO_E_FILE_NOT_AVAILABLE
L'errore non è associato a un file locale o remoto. Il parametro ppFile è impostato su NULL.

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_IBackgroundCopyError è definito come 19C613A0-FCB8-4F28-81AE-897C3D078F81

Vedi anche

IBackgroundCopyError

IBackgroundCopyError::GetError