BackgroundDownloader.RequestUnconstrainedDownloadsAsync 方法

定义

注意

requestUnconstrainedDownloadsAsync 可能在Windows 10版本 1607 之后更改或不可用。 请改用 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

IIterable<DownloadOperation>

IEnumerable<DownloadOperation>

要不受约束地运行的下载操作。

返回

指示操作是否会不受约束地运行。

属性

适用于