BackgroundUploader.RequestUnconstrainedUploadsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
RequestUnconstrainedUploadsAsync 可能会在Windows 10版本 1607 之后被更改或不可用。 请改用 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
要不受约束地运行的上传操作。
返回
指示操作是否会不受约束地运行。
- 属性