Compartir a través de


DownloadOperation.RangesDownloaded Evento

Definición

Proporciona acceso al progreso de descarga incremental.

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

Tipo de evento

Requisitos de Windows

Familia de dispositivos
Windows 10 Fall Creators Update (se introdujo en la versión 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v5.0)

Comentarios

Familia de dispositivos Universal; SDK versión 10.0.16299.0 (Windows 10, versión 1709)
Contrato de API Windows.Foundation.UniversalApiContract (introducido v5)
Capabilities internetClientServer, privateNetworkClientServer, internetClient}

Se aplica a

Consulte también