共用方式為


IEnumBackgroundCopyFiles::GetCount 方法

擷取列舉中檔案數目的計數。

語法

HRESULT GetCount(
  [out] ULONG *pCount
);

參數

pCount [out]

列舉中的檔案數目。

傳回值

此方法會在成功時 傳回S_OK ,或發生錯誤的其中一個標準 COM HRESULT 值。

規格需求

需求
最低支援的用戶端
Windows 10版本 1709 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 版本 1709 [僅限傳統型應用程式]
標頭
Deliveryoptimization.h
Idl
DeliveryOptimization.idl
程式庫
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IEnumBackgroundCopyFiles定義為 CA51E165-C365-424C-8D41-24AAA4FF3C40

另請參閱

IEnumBackgroundCopyFiles