Windows Dev Center

BackgroundDownloader.GetCurrentDownloadsAsync(String) | getCurrentDownloadsAsync(String) method

[GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.]

Returns a collection of pending downloads for a specific Group.

Syntax


Windows.Networking.BackgroundTransfer.BackgroundDownloader.getCurrentDownloadsAsync(group).done( /* Your success and error handlers */ );

Parameters

group

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string indicating a specific group of transfers.

Return value

Type: IAsyncOperation<IVectorView>

A collection of pending downloads for the specific group.

Remarks

On Windows Phone, this method will return the error code HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) if the Internet capability is not declared in your app manifest. On Windows, this method will return the error code HRESULT: 0x80070005 (E_ACCESSDENIED) if the Internet capability is not declared in your app manifest. This capability is enabled by default in all Store app project templates.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.BackgroundTransfer
Windows::Networking::BackgroundTransfer [C++]

Metadata

Windows.winmd

Attributes

[Deprecated()]

See also

BackgroundDownloader
GetCurrentDownloadsAsync

 

 

Show:
© 2015 Microsoft