This topic has not yet been rated - Rate this topic

BackgroundTransferRequest.TransferPreferences Property

Windows Phone

March 22, 2012

Gets or sets the preferred conditions under which transfers are enabled.

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public TransferPreferences TransferPreferences { get; set; }

Property Value

Type: Microsoft.Phone.BackgroundTransfer.TransferPreferences
The preferred conditions under which transfers are enabled.

This property allows applications to request that background transfers proceed when only a cellular connection is available and when the device is on battery power. This is only a preference setting. It does not guarantee that transfers will take place under these conditions. The default value is None, which indicates that transfers should occur only when a Wi-Fi connection is available and when the device is connected to external power.

This method may throw one of the following exceptions.

InvalidOperationException

A transfer request’s properties cannot be modified after it has been submitted or disposed.

Windows Phone OS

Supported in: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)