共用方式為


IBackgroundCopyFile5::SetProperty 方法

設定傳遞優化檔案傳輸的泛型屬性。

語法

HRESULT SetProperty(
  [in]  BITS_FILE_PROPERTY_ID    PropertyId,
  [out] BITS_FILE_PROPERTY_VALUE *ProertyValue
);

參數

PropertyId [in]

指定要設定的屬性。

ProertyValue [out]

等位的指標,指定要設定的值。 使用適用于屬性識別碼的等位成員。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
最低支援的用戶端
Windows 10 1709 版 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 版本 1709 [僅限傳統型應用程式]
標頭
Deliveryoptimization.h
Idl
DeliveryOptimization.idl
程式庫
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyFile5定義為 85C1657F-DAFC-40E8-8834-DF18EA25717E

另請參閱

IBackgroundCopyFile5

IBackgroundCopyFile5.GetProperty