This topic has not yet been rated - Rate this topic

BackgroundTransferService Class

Windows Phone

March 22, 2012

Enables the management of background transfer requests.

System.Object
  Microsoft.Phone.BackgroundTransfer.BackgroundTransferService

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public static class BackgroundTransferService

The BackgroundTransferService type exposes the following members.

  Name Description
Public property Static member Requests Gets an enumeration of all active transfer requests associated with the calling application.
Top
  Name Description
Public method Static member Add Adds a background transfer request to the queue.
Public method Static member Find Attempts to return the background transfer request with the specified ID.
Public method Static member Remove Attempts to remove the background transfer request with the specified ID.
Top

Transfer requests are created and configured using the BackgroundTransferRequest class. The BackgroundTransferService is used to submit requests, remove requests from the queue, and retrieve active requests.

Each application can have only five requests queued at a given time. Attempting to add a request after this limit has been reached will throw an exception. It is the responsibility of the application to remove requests from the queue by using the Remove(BackgroundTransferRequest) method after they have completed.

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)