IBackgroundCopyJob::GetId, méthode

Récupère l’identificateur utilisé pour identifier le travail dans la file d’attente.

Syntaxe

HRESULT GetId(
  [out] GUID *pJobID
);

Paramètres

pJobID [out]

GUID qui identifie le travail dans la file d’attente d’optimisation de la distribution.

Valeur retournée

Cette méthode retourne S_OK sur la réussite ou l’une des valeurs COM HRESULT standard en cas d’erreur.

Notes

Le service génère l’identificateur lorsque vous créez le travail. Pour utiliser l’identificateur pour récupérer un pointeur d’interface IBackgroundCopyJob pour le travail, appelez la méthode IBackgroundCopyManager::GetJob .

Configuration requise

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

IBackgroundCopyManager::CreateJob

IBackgroundCopyManager::GetJob