Bagikan melalui


BackgroundDownloader.GetCurrentDownloadsAsync Metode

Definisi

Overload

GetCurrentDownloadsAsync(String)

Catatan

GetCurrentDownloadsAsync(group) mungkin diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan GetCurrentDownloadsForTransferGroupAsync.

Mengembalikan kumpulan unduhan yang tertunda untuk Grup tertentu.

GetCurrentDownloadsAsync()

Mengembalikan kumpulan unduhan tertunda yang tidak terkait dengan BackgroundTransferGroup.

GetCurrentDownloadsAsync(String)

Catatan

GetCurrentDownloadsAsync(group) mungkin diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan GetCurrentDownloadsForTransferGroupAsync.

Mengembalikan kumpulan unduhan yang tertunda untuk Grup tertentu.

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))

Parameter

group
String

Platform::String

winrt::hstring

String yang menunjukkan grup transfer tertentu.

Mengembalikan

Kumpulan unduhan yang tertunda untuk grup tertentu.

Atribut

Keterangan

Di Windows Phone, metode ini akan mengembalikan kode kesalahan HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) jika kemampuan Internet tidak dideklarasikan dalam manifes aplikasi Anda. Di Windows, metode ini akan mengembalikan kode kesalahan HRESULT: 0x80070005 (E_ACCESSDENIED) jika kemampuan Internet tidak dideklarasikan dalam manifes aplikasi Anda. Kemampuan ini diaktifkan secara default di semua templat proyek aplikasi Store.

Lihat juga

Berlaku untuk

GetCurrentDownloadsAsync()

Mengembalikan kumpulan unduhan tertunda yang tidak terkait dengan 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))

Mengembalikan

Kumpulan unduhan yang tertunda untuk instans aplikasi saat ini.

Atribut

Keterangan

Di Windows Phone, metode ini akan mengembalikan kode kesalahan HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) jika kemampuan Internet tidak dideklarasikan dalam manifes aplikasi Anda. Di Windows, metode ini akan mengembalikan kode kesalahan HRESULT: 0x80070005 (E_ACCESSDENIED) jika kemampuan Internet tidak dideklarasikan dalam manifes aplikasi Anda. Kemampuan ini diaktifkan secara default di semua templat proyek aplikasi Store.

Lihat juga

Berlaku untuk