Share via


BackgroundDownloader.GetCurrentDownloadsAsync Méthode

Définition

Surcharges

GetCurrentDownloadsAsync(String)

Notes

GetCurrentDownloadsAsync(group) peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt GetCurrentDownloadsForTransferGroupAsync.

Retourne une collection de téléchargements en attente pour un groupe spécifique.

GetCurrentDownloadsAsync()

Retourne une collection de téléchargements en attente qui ne sont pas associés à un BackgroundTransferGroup.

GetCurrentDownloadsAsync(String)

Notes

GetCurrentDownloadsAsync(group) peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt GetCurrentDownloadsForTransferGroupAsync.

Retourne une collection de téléchargements en attente pour un groupe spécifique.

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

Paramètres

group
String

Platform::String

winrt::hstring

Chaîne indiquant un groupe spécifique de transferts.

Retours

Collection de téléchargements en attente pour le groupe spécifique.

Attributs

Remarques

Sur Windows Phone, cette méthode retourne le code d’erreur HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) si la fonctionnalité Internet n’est pas déclarée dans le manifeste de votre application. Sur Windows, cette méthode retourne le code d’erreur HRESULT : 0x80070005 (E_ACCESSDENIED) si la fonctionnalité Internet n’est pas déclarée dans le manifeste de votre application. Cette fonctionnalité est activée par défaut dans tous les modèles de projet d’application du Store.

Voir aussi

S’applique à

GetCurrentDownloadsAsync()

Retourne une collection de téléchargements en attente qui ne sont pas associés à un 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))

Retours

Collection de téléchargements en attente pour l’application actuelle instance.

Attributs

Remarques

Sur Windows Phone, cette méthode retourne le code d’erreur HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) si la fonctionnalité Internet n’est pas déclarée dans le manifeste de votre application. Sur Windows, cette méthode retourne le code d’erreur HRESULT : 0x80070005 (E_ACCESSDENIED) si la fonctionnalité Internet n’est pas déclarée dans le manifeste de votre application. Cette fonctionnalité est activée par défaut dans tous les modèles de projet d’application du Store.

Voir aussi

S’applique à