Background​Download​Progress Background​Download​Progress Background​Download​Progress Struct

Definition

Contains status information about the download operation.

public struct BackgroundDownloadProgresspublic struct BackgroundDownloadProgressPublic Structure BackgroundDownloadProgress
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

BytesReceived BytesReceived BytesReceived

The total number of bytes received. This value does not include bytes received as response headers. If the download operation has restarted, this value may be smaller than in the previous progress report.

public field ulong BytesReceivedpublic field ulong BytesReceivedPublic Field BytesReceived
Attributes

HasResponseChanged HasResponseChanged HasResponseChanged

true if the download request response has changed; otherwise, false.

Whenever new response information is available due to a new request being invoked, this field is set to true. The application can then choose to read the new response information and update its state, if needed.

public field bool HasResponseChangedpublic field bool HasResponseChangedPublic Field HasResponseChanged
Attributes

HasRestarted HasRestarted HasRestarted

true if a data transfer operation has restarted; otherwise false.

When a download is interrupted and a new request is sent to the server to resume the download, HasRestarted is set to true if the server does not support resume and the download had to start over.

HasRestarted is set to true only in the first progress notification sent after the restart. After the first progress notification, HasRestarted is set to false in later notifications.

public field bool HasRestartedpublic field bool HasRestartedPublic Field HasRestarted
Attributes

Status Status Status

The current status of the download operation.

public field BackgroundTransferStatus Statuspublic field BackgroundTransferStatus StatusPublic Field Status
Attributes

TotalBytesToReceive TotalBytesToReceive TotalBytesToReceive

The total number of bytes of data to download. If this number is unknown, this value is set to 0.

public field ulong TotalBytesToReceivepublic field ulong TotalBytesToReceivePublic Field TotalBytesToReceive
Attributes