This topic has not yet been rated - Rate this topic

TransferPreferences Enumeration

Windows Phone

March 22, 2012

Defines the list of preferences for background transfer requests.

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public enum TransferPreferences
<object property="enumerationValue" .../>
Member name Description
None Allow transfers only when the device is using external power and has a Wi-Fi connection. This is the default setting.
AllowCellular Allow transfers when the device is connected to external power and has a Wi-Fi or cellular connection.
AllowBattery Allow transfers when there is a Wi-Fi connection and the device is using battery or external power.
AllowCellularAndBattery Allow transfers when the device is using battery or external power and has a Wi-Fi or cellular connection.

By default, background transfers that are submitted using the BackgroundTransferService will occur only when the device has a Wi-Fi connection and is connected to external power. Using the TransferPreferences property of the BackgroundTransferRequest class, you can specify that you prefer for downloads to occur when one or both of these conditions are not met. Setting this does not guarantee that transfers will occur under the preferred conditions.

Caution note Caution:

Requesting for transfers to proceed when the device has only a cellular connection and is not connected to external power can result in negative user experiences, including shorter battery life and greater data usage charges. It is recommended that you use the default None setting.

Windows Phone OS

Supported in: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)