Share via


BackgroundTransferCostPolicy Enum

Definition

Defines values used to specify whether transfers can occur on metered networks.

public enum class BackgroundTransferCostPolicy
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BackgroundTransferCostPolicy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BackgroundTransferCostPolicy
var value = Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy.default
Public Enum BackgroundTransferCostPolicy
Inheritance
BackgroundTransferCostPolicy
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
Default 0

Allow transfers on metered networks.

UnrestrictedOnly 1

Do not allow transfers on metered networks.

Always 2

Always download regardless of network cost. (for example, even while a user is roaming)

Note

This behavior is based only on network cost policy, and doesn't affect other app scenarios, like system suspension.

Applies to