BackgroundDownloader.RequestUnconstrainedDownloadsAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
注意
requestUnconstrainedDownloadsAsync 可能會在版本 1607 Windows 10之後變更或無法使用。 請改用 CreateDownloadAsync。
用來要求不受限制的下載作業。 呼叫這個方法時,會提供使用者 UI 提示,讓他們可用來指出其同意未受限制的作業。在裝置在電池上執行時,未受限制的傳輸作業會執行,而不會有通常與背景網路作業相關聯的資源限制。
public:
static IAsyncOperation<UnconstrainedTransferRequestResult ^> ^ RequestUnconstrainedDownloadsAsync(IIterable<DownloadOperation ^> ^ operations);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedDownloadsAsync(IIterable<DownloadOperation> const& operations);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("RequestUnconstrainedDownloadsAsync is deprecated and may not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedDownloadsAsync(IIterable<DownloadOperation> const& operations);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedDownloadsAsync(IEnumerable<DownloadOperation> operations);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("RequestUnconstrainedDownloadsAsync is deprecated and may not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedDownloadsAsync(IEnumerable<DownloadOperation> operations);
function requestUnconstrainedDownloadsAsync(operations)
Public Shared Function RequestUnconstrainedDownloadsAsync (operations As IEnumerable(Of DownloadOperation)) As IAsyncOperation(Of UnconstrainedTransferRequestResult)
參數
- operations
要執行不受限制的下載作業。
傳回
指出作業是否會不受限制地執行。
- 屬性