BackgroundDownloader.GetCurrentDownloadsAsync 方法

定义

重载

GetCurrentDownloadsAsync(String)

注意

getCurrentDownloadsAsync (组) 在Windows 8.1后可能会更改或不可用。 请改用 GetCurrentDownloadsForTransferGroupAsync

返回特定 的挂起下载的集合。

GetCurrentDownloadsAsync()

返回未与 BackgroundTransferGroup 关联的挂起下载的集合。

GetCurrentDownloadsAsync(String)

注意

getCurrentDownloadsAsync (组) 在Windows 8.1后可能会更改或不可用。 请改用 GetCurrentDownloadsForTransferGroupAsync

返回特定 的挂起下载的集合。

public:
 static IAsyncOperation<IVectorView<DownloadOperation ^> ^> ^ GetCurrentDownloadsAsync(Platform::String ^ group);
/// [Windows.Foundation.Metadata.Deprecated("GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Overload("GetCurrentDownloadsForGroupAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync(winrt::hstring const& group);
/// [Windows.Foundation.Metadata.Overload("GetCurrentDownloadsForGroupAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync(winrt::hstring const& group);
[Windows.Foundation.Metadata.Deprecated("GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Overload("GetCurrentDownloadsForGroupAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<DownloadOperation>> GetCurrentDownloadsAsync(string group);
[Windows.Foundation.Metadata.Overload("GetCurrentDownloadsForGroupAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("GetCurrentDownloadsAsync(group) may be altered or unavailable for releases after Windows 8.1. Instead, use GetCurrentDownloadsForTransferGroupAsync.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<IReadOnlyList<DownloadOperation>> GetCurrentDownloadsAsync(string group);
function getCurrentDownloadsAsync(group)
Public Shared Function GetCurrentDownloadsAsync (group As String) As IAsyncOperation(Of IReadOnlyList(Of DownloadOperation))

参数

group
String

Platform::String

winrt::hstring

指示特定传输组的字符串。

返回

特定组的挂起下载的集合。

属性

注解

Windows Phone时,如果未在应用清单中声明 Internet 功能,此方法将返回错误代码 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG) 。 在 Windows 上,如果应用清单中未声明 Internet 功能,此方法将返回错误代码 HRESULT: 0x80070005 (E_ACCESSDENIED) 。 默认情况下,在所有应用商店应用项目模板中都启用此功能。

另请参阅

适用于

GetCurrentDownloadsAsync()

返回未与 BackgroundTransferGroup 关联的挂起下载的集合。

public:
 static IAsyncOperation<IVectorView<DownloadOperation ^> ^> ^ GetCurrentDownloadsAsync();
/// [Windows.Foundation.Metadata.Overload("GetCurrentDownloadsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<DownloadOperation>> GetCurrentDownloadsAsync();
[Windows.Foundation.Metadata.Overload("GetCurrentDownloadsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<DownloadOperation>> GetCurrentDownloadsAsync();
function getCurrentDownloadsAsync()
Public Shared Function GetCurrentDownloadsAsync () As IAsyncOperation(Of IReadOnlyList(Of DownloadOperation))

返回

当前应用程序实例的挂起下载的集合。

属性

注解

Windows Phone时,如果未在应用清单中声明 Internet 功能,此方法将返回错误代码 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG) 。 在 Windows 上,如果应用清单中未声明 Internet 功能,此方法将返回错误代码 HRESULT: 0x80070005 (E_ACCESSDENIED) 。 默认情况下,在所有应用商店应用项目模板中都启用此功能。

另请参阅

适用于