Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BackgroundTransferCostPolicy Enum

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?