Share via


BackgroundUploader.RequestUnconstrainedUploadsAsync Method

Definition

Note

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

Used to request an unconstrained upload 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 ^> ^ RequestUnconstrainedUploadsAsync(IIterable<UploadOperation ^> ^ operations);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedUploadsAsync(IIterable<UploadOperation> const& operations);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("RequestUnconstrainedUploadsAsync 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> RequestUnconstrainedUploadsAsync(IIterable<UploadOperation> const& operations);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<UnconstrainedTransferRequestResult> RequestUnconstrainedUploadsAsync(IEnumerable<UploadOperation> operations);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("RequestUnconstrainedUploadsAsync 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> RequestUnconstrainedUploadsAsync(IEnumerable<UploadOperation> operations);
function requestUnconstrainedUploadsAsync(operations)
Public Shared Function RequestUnconstrainedUploadsAsync (operations As IEnumerable(Of UploadOperation)) As IAsyncOperation(Of UnconstrainedTransferRequestResult)

Parameters

operations

IIterable<UploadOperation>

IEnumerable<UploadOperation>

The upload operation to run unconstrained.

Returns

Indicates if the operations will run unconstrained.

Attributes

Applies to