Dela via


BackgroundTransferStatus Enum

Definition

Defines transfer operation status values.

public enum class BackgroundTransferStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BackgroundTransferStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BackgroundTransferStatus
var value = Windows.Networking.BackgroundTransfer.BackgroundTransferStatus.idle
Public Enum BackgroundTransferStatus
Inheritance
BackgroundTransferStatus
Attributes

Windows requirements

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

Fields

Name Value Description
Idle 0

The application is idle.

Running 1

The transfer is currently in progress.

PausedByApplication 2

The application has paused the transfer operation.

PausedCostedNetwork 3

The transfer operation is paused due to cost policy (for example, transitioned to a costed network).

PausedNoNetwork 4

The transfer operation is paused due to a lack of network connectivity.

Completed 5

The transfer operation has completed.

Canceled 6

The transfer operation has been cancelled.

Error 7

An error was encountered during the transfer operation.

PausedRecoverableWebErrorStatus 8

One of the app-configured recoverable web error statuses (RecoverableWebErrorStatuses).

PausedSystemPolicy 32

The transfer is paused by the system due to resource constraints. Examples of constraints include the system being on Battery Saver when the application is not in the foreground. In Windows Phone, transfers will have this status if Battery Saver is activated, if the background task can't get enough memory, CPU, power resources to run, or if the network condition is 2G and the app is not in the foreground

Remarks

Version history

Windows version SDK version Value added
1709 16299 PausedRecoverableWebErrorStatus

Applies to

See also