共用方式為


DownloadOperation.RangesDownloaded 事件

定義

提供累加式下載進度的存取權。

// Register
event_token RangesDownloaded(TypedEventHandler<DownloadOperation, BackgroundTransferRangesDownloadedEventArgs const&> const& handler) const;

// Revoke with event_token
void RangesDownloaded(event_token const* cookie) const;

// Revoke with event_revoker
DownloadOperation::RangesDownloaded_revoker RangesDownloaded(auto_revoke_t, TypedEventHandler<DownloadOperation, BackgroundTransferRangesDownloadedEventArgs const&> const& handler) const;
public event TypedEventHandler<DownloadOperation,BackgroundTransferRangesDownloadedEventArgs> RangesDownloaded;
function onRangesDownloaded(eventArgs) { /* Your code */ }
downloadOperation.addEventListener("rangesdownloaded", onRangesDownloaded);
downloadOperation.removeEventListener("rangesdownloaded", onRangesDownloaded);
- or -
downloadOperation.onrangesdownloaded = onRangesDownloaded;
Public Custom Event RangesDownloaded As TypedEventHandler(Of DownloadOperation, BackgroundTransferRangesDownloadedEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

裝置系列 普遍;SDK 版本 10.0.16299.0 (Windows 10,版本 1709)
API 合約 Windows.Foundation.UniversalApiContract (引進 v5)
Capabilities internetClientServer、privateNetworkClientServer、internetClient}

適用於

另請參閱