Jaa


BackgroundDownloader.RequestUnconstrainedDownloadsAsync Method

Definition

Note

RequestUnconstrainedDownloadsAsync may be altered or unavailable for releases after Windows 10, version 1607. Instead, use CreateDownloadAsync.

Used to request an unconstrained download operation. When this method is called the user is provided with a UI prompt that they can use to indicate their consent for an unconstrained operation.An unconstrained transfer operation will run without the resource restrictions normally associated with background network operations while a device is running on battery.

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)

Parameters

operations

IIterable<DownloadOperation>

IEnumerable<DownloadOperation>

The download operation to run unconstrained.

Returns

Indicates if the operations will run unconstrained.

Attributes

Applies to