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)

Syntax

Public Shared ReadOnly Property Requests As IEnumerable(Of BackgroundTransferRequest)
public static IEnumerable<BackgroundTransferRequest> Requests { get; }

Property Value

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

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

BackgroundTransferService Class

Microsoft.Phone.BackgroundTransfer Namespace