Condividi tramite


BackgroundDownloader.GetCurrentDownloadsAsync Metodo

Definizione

Overload

GetCurrentDownloadsAsync(String)

Nota

GetCurrentDownloadsAsync(group) può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece GetCurrentDownloadsForTransferGroupAsync.

Restituisce una raccolta di download in sospeso per un gruppo specifico.

GetCurrentDownloadsAsync()

Restituisce una raccolta di download in sospeso non associati a backgroundTransferGroup.

GetCurrentDownloadsAsync(String)

Nota

GetCurrentDownloadsAsync(group) può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece GetCurrentDownloadsForTransferGroupAsync.

Restituisce una raccolta di download in sospeso per un gruppo specifico.

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

Parametri

group
String

Platform::String

winrt::hstring

Stringa che indica un gruppo specifico di trasferimenti.

Restituisce

Raccolta di download in sospeso per il gruppo specifico.

Attributi

Commenti

In Windows Phone questo metodo restituirà il codice di errore HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) se la funzionalità Internet non è dichiarata nel manifesto dell'app. In Windows questo metodo restituirà il codice di errore HRESULT: 0x80070005 (E_ACCESSDENIED) se la funzionalità Internet non viene dichiarata nel manifesto dell'app. Questa funzionalità è abilitata per impostazione predefinita in tutti i modelli di progetto dell'app store.

Vedi anche

Si applica a

GetCurrentDownloadsAsync()

Restituisce una raccolta di download in sospeso non associati a 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))

Restituisce

Raccolta di download in sospeso per l'istanza dell'applicazione corrente.

Attributi

Commenti

In Windows Phone questo metodo restituirà il codice di errore HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) se la funzionalità Internet non è dichiarata nel manifesto dell'app. In Windows questo metodo restituirà il codice di errore HRESULT: 0x80070005 (E_ACCESSDENIED) se la funzionalità Internet non viene dichiarata nel manifesto dell'app. Questa funzionalità è abilitata per impostazione predefinita in tutti i modelli di progetto dell'app store.

Vedi anche

Si applica a