Delen via


BackgroundUploadProgress Struct

Definition

Contains status information about the upload operation.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct BackgroundUploadProgress
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct BackgroundUploadProgress
var backgroundUploadProgress = {
bytesReceived : /* Your value */,
bytesSent : /* Your value */,
totalBytesToReceive : /* Your value */,
totalBytesToSend : /* Your value */,
status : /* Your value */,
hasResponseChanged : /* Your value */,
hasRestarted : /* Your value */
}
Public Structure BackgroundUploadProgress
Inheritance
BackgroundUploadProgress
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

BytesReceived

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

BytesSent

The total number of bytes sent. If the upload operation has restarted, this value may be smaller than in the previous progress report.

HasResponseChanged

TRUE if the upload 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.

HasRestarted

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

Uploads cannot be resumed. Whenever a new request is sent to the server to restart the upload, this property is set to true in the first progress notification for the new request. After the first progress notification, HasRestarted is set to false in later notifications.

Status

The current status of the upload operation.

TotalBytesToReceive

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

TotalBytesToSend

The total number of bytes to upload.

Applies to

See also