IBackgroundCopyJob::GetPriority 方法

擷取作業的優先順序層級。 優先順序層級會決定作業的處理時間,相對於傳輸佇列中的其他作業。

語法

HRESULT GetPriority(
  [out] BG_JOB_PRIORITY *pPriority
);

參數

pPriority [out]

相對於傳輸佇列中其他作業的作業優先順序。

傳回值

這個方法會傳回下列 HRESULT 值,以及其他值。

傳回碼 描述
S_OK
已成功擷取優先順序層級。

規格需求

需求
最低支援的用戶端
Windows 10版本 1709 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 版本 1709 [僅限傳統型應用程式]
標頭
Deliveryoptimization.h
Idl
DeliveryOptimization.idl
程式庫
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyJob定義為 37668D37-507E-4160-9316-26306D150B12

另請參閱

IBackgroundCopyJob

IBackgroundCopyJob::SetPriority