Share via


BackgroundDownloader.GetCurrentDownloadsAsync メソッド

定義

オーバーロード

GetCurrentDownloadsAsync(String)

注意

GetCurrentDownloadsAsync(group) は、Windows 8.1後のリリースで変更または使用できない可能性があります。 代わりに、 GetCurrentDownloadsForTransferGroupAsync を使用します。

特定のグループの保留中のダウンロードのコレクションを返 します

GetCurrentDownloadsAsync()

BackgroundTransferGroup に関連付けられていない保留中のダウンロードのコレクションを返します。

GetCurrentDownloadsAsync(String)

注意

GetCurrentDownloadsAsync(group) は、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) を返します。 この機能は、すべてのストア アプリ プロジェクト テンプレートで既定で有効になっています。

こちらもご覧ください

適用対象