BackgroundDownloader.GetCurrentDownloadsAsync BackgroundDownloader.GetCurrentDownloadsAsync BackgroundDownloader.GetCurrentDownloadsAsync BackgroundDownloader.GetCurrentDownloadsAsync BackgroundDownloader.GetCurrentDownloadsAsync Method

Definition

Overloads

GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync()

Returns a collection of pending downloads that are not associated with a BackgroundTransferGroup.

GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String)

Note

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.

GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync() GetCurrentDownloadsAsync()

Returns a collection of pending downloads that are not associated with a BackgroundTransferGroup.

public : static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync()
static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync() const;
public static IAsyncOperation<IReadOnlyList<DownloadOperation>> GetCurrentDownloadsAsync()
Public Shared Function GetCurrentDownloadsAsync() As IAsyncOperation<IReadOnlyList<DownloadOperation>>(Of IVectorView)
Windows.Networking.BackgroundTransfer.BackgroundDownloader.getCurrentDownloadsAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IReadOnlyList<DownloadOperation>> IAsyncOperation<IReadOnlyList<DownloadOperation>> IAsyncOperation<IReadOnlyList<DownloadOperation>>

A collection of pending downloads for the current application instance.

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.

See also

GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String) GetCurrentDownloadsAsync(String)

Note

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.

public : static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync(Platform::String group)
static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync(winrt::hstring group) const;
public static IAsyncOperation<IReadOnlyList<DownloadOperation>> GetCurrentDownloadsAsync(String group)
Public Shared Function GetCurrentDownloadsAsync(group As String) As IAsyncOperation<IReadOnlyList<DownloadOperation>>(Of IVectorView)
Windows.Networking.BackgroundTransfer.BackgroundDownloader.getCurrentDownloadsAsync(group).done( /* Your success and error handlers */ );

Parameters

group
String String String

A string indicating a specific group of transfers.

Returns

IAsyncOperation<IReadOnlyList<DownloadOperation>> IAsyncOperation<IReadOnlyList<DownloadOperation>> IAsyncOperation<IReadOnlyList<DownloadOperation>>

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.

See also