Dela via


BackgroundTransferRangesDownloadedEventArgs.WasDownloadRestarted Property

Definition

TRUE if the download was restarted from scratch since the previous RangesDownloaded event.

public:
 property bool WasDownloadRestarted { bool get(); };
bool WasDownloadRestarted();
public bool WasDownloadRestarted { get; }
var boolean = backgroundTransferRangesDownloadedEventArgs.wasDownloadRestarted;
Public ReadOnly Property WasDownloadRestarted As Boolean

Property Value

Boolean

bool

TRUE if the download was restarted from scratch since the previous RangesDownloaded event, otherwise FALSE.

Remarks

This is important, as the app will need to reset any state related to previously-processed DownloadedRanges data in that case. Download restarts can occur if the remote file’s timestamp or ETag changes.

Applies to

See also