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上,如果應用程式資訊清單中未宣告網際網路功能,這個方法會傳回錯誤碼 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG) 。 在 Windows 上,如果應用程式資訊清單中未宣告網際網路功能,這個方法會傳回錯誤碼 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上,如果應用程式資訊清單中未宣告網際網路功能,這個方法會傳回錯誤碼 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG) 。 在 Windows 上,如果應用程式資訊清單中未宣告網際網路功能,這個方法會傳回錯誤碼 HRESULT:0x80070005 (E_ACCESSDENIED) 。 此功能預設會在所有市集應用程式專案範本中啟用。

另請參閱

適用於