使用 IBackgroundCopyFile2 介面來指定檔案的新遠端名稱,並擷取要下載的範圍清單。
IBackgroundCopyFile2介面繼承自IBackgroundCopyFile介面。
若要取得 IBackgroundCopyFile2 介面指標,請使用介面識別碼的 IBackgroundCopyFile2 __uuidof (IBackgroundCopyFile2) 呼叫 IBackgroundCopyFile::QueryInterface 方法。 使用 IBackgroundCopyFile2 介面指標來呼叫 IBackgroundCopyFile 和 IBackgroundCopyFile2 方法。
成員
IBackgroundCopyFile2介面繼承自IBackgroundCopyFile。 IBackgroundCopyFile2 也有下列類型的成員:
方法
IBackgroundCopyFile2介面具有這些方法。
| 方法 | 描述 |
|---|---|
| GetFileRanges | 擷取您想要從 URL 下載的範圍陣列。 |
| SetRemoteName | 將遠端名稱變更為新的 URL。 |
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 |
Windows 10版本 1709 [僅限傳統型應用程式] |
| 最低支援的伺服器 |
Windows Server 版本 1709 [僅限傳統型應用程式] |
| 標頭 |
|
| Idl |
|
| 程式庫 |
|
| DLL |
|
| IID |
IID_IBackgroundCopyFile2定義為 83E81B93-0873-474D-8A8C-F2018B1A939C |