Windows Dev Center

BackgroundTransferCostPolicy enumeration

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

Syntax


var value = Windows.Networking.BackgroundTransfer.BackgroundTransferCostPolicy.default;

Attributes

[Version(0x06020000)]

Members

The BackgroundTransferCostPolicy enumeration has these members.

MemberValueDescription
Default | default0

Allow transfers on metered networks.

UnrestrictedOnly | unrestrictedOnly1

Do not allow transfers on metered networks.

Always | always2

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.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.winmd

 

 

Show:
© 2015 Microsoft