BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy BackgroundTransferCostPolicy Enum

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

Syntax

Declaration

public enum BackgroundTransferCostPolicypublic enum BackgroundTransferCostPolicyPublic Enum BackgroundTransferCostPolicy

Fields

Always
Always
Always
Always

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

Allow transfers on metered networks.

UnrestrictedOnly
UnrestrictedOnly
UnrestrictedOnly
UnrestrictedOnly

Do not allow transfers on metered networks.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Networking.BackgroundTransfer.dll