共用方式為


BackgroundUploader.RequestUnconstrainedUploadsAsync 方法

定義

注意

requestUnconstrainedUploadsAsync 可能會在版本 1607 Windows 10之後變更或無法使用。 請改用 CreateUploadAsync

用來要求不受限制的上傳作業。 呼叫這個方法時,會提供使用者 UI 提示,讓他們可用來指出其同意未受限制的作業。在裝置在電池上執行時,未受限制的傳輸作業會執行,而不會有通常與背景網路作業相關聯的資源限制。

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)

參數

operations

IIterable<UploadOperation>

IEnumerable<UploadOperation>

要執行不受限制的上傳作業。

傳回

指出作業是否會不受限制地執行。

屬性

適用於