共用方式為


IBackgroundCopyFile5::GetProperty 方法

取得傳遞優化檔案傳輸的泛型屬性。

語法

HRESULT GetProperty(
  [in]  BITS_FILE_PROPERTY_ID    PropertyId,
  [out] BITS_FILE_PROPERTY_VALUE *PropertyValue
);

參數

PropertyId [in]

指定要擷取其值的檔案屬性。

PropertyValue [out]

屬性值,傳回為BITS_FILE_PROPERTY_VALUE等位的指標。 使用適合傳入之屬性識別碼值的等位欄位。

傳回值

如果此方法成功,則會傳回 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.SetProperty