[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Enables the management of background transfer requests.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Public NotInheritable Class BackgroundTransferService
public static class BackgroundTransferService
The BackgroundTransferService type exposes the following members.
|Requests||Gets an enumeration of all active transfer requests associated with the calling application.|
|Add||Adds a background transfer request to the queue.|
|Find||Attempts to return the background transfer request with the specified ID.|
|Remove||Attempts to remove the background transfer request with the specified ID.|
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 25 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.
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
Windows Phone 8, Windows Phone OS 7.1
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.