Udostępnij za pośrednictwem


DownloadOperation.RangesDownloaded Event

Definition

Provides access to incremental download progress.

// 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) 

Event Type

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

Device family Universal; SDK version 10.0.16299.0 (Windows 10, version 1709)
API contract Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities internetClientServer, privateNetworkClientServer, internetClient}

Applies to

See also