Requests Property
Collapse the table of content
Expand the table of content

BackgroundTransferService.Requests Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets an enumeration of all active transfer requests associated with the calling application.

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static IEnumerable<BackgroundTransferRequest> Requests { get; }

Property Value

Type: System.Collections.Generic.IEnumerable<BackgroundTransferRequest>
An enumeration of all active transfer requests associated with the calling application.

When you access this property, new instances of BackgroundTransferRequest are created. To help prevent memory leaks, we recommend that you avoid accessing this property frequently, such as in a game loop, to query the number of requests. We also recommend that you dispose of the returned objects quickly, as soon as you are no longer using them.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft