BackgroundTransferCostPolicy Enum

Definition

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

public enum class BackgroundTransferCostPolicy
enum 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 10 requirements

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

Fields

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.

Default 0

Allow transfers on metered networks.

UnrestrictedOnly 1

Do not allow transfers on metered networks.

Applies to