BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy Enum

Definition

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

public : enum class BackgroundTransferCostPolicy
enum class winrt::Windows::Networking::BackgroundTransfer::BackgroundTransferCostPolicy : int32_t
public enum BackgroundTransferCostPolicy
Public Enum BackgroundTransferCostPolicy
var value = Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy.always;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Always Always Always Always Always 2

Always download regardless of network cost. (e.g. 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 Default Default Default Default 0

Allow transfers on metered networks.

UnrestrictedOnly UnrestrictedOnly UnrestrictedOnly UnrestrictedOnly UnrestrictedOnly 1

Do not allow transfers on metered networks.