BackgroundUploader.CreateUploadAsync 方法

定义

重载

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>)

返回一个异步操作,该操作在完成后返回具有指定 URI 和一个或多个 BackgroundTransferContentPart 对象的 UploadOperation

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>, String)

返回一个异步操作,该操作在完成后返回具有指定 URI 的 UploadOperation 、一个或多个 BackgroundTransferContentPart 对象以及多部分子类型。

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>, String, String)

返回一个异步操作,该操作在完成后返回 UploadOperation ,其中包含指定的 URI、多部分子类型、一个或多个 BackgroundTransferContentPart 对象以及用于分隔每个部分的分隔符边界值。

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>)

返回一个异步操作,该操作在完成后返回具有指定 URI 和一个或多个 BackgroundTransferContentPart 对象的 UploadOperation

public:
 virtual IAsyncOperation<UploadOperation ^> ^ CreateUploadAsync(Uri ^ uri, IIterable<BackgroundTransferContentPart ^> ^ parts) = CreateUploadAsync;
/// [Windows.Foundation.Metadata.Overload("CreateUploadWithFormDataAndAutoBoundaryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UploadOperation> CreateUploadAsync(Uri const& uri, IIterable<BackgroundTransferContentPart> const& parts);
[Windows.Foundation.Metadata.Overload("CreateUploadWithFormDataAndAutoBoundaryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UploadOperation> CreateUploadAsync(System.Uri uri, IEnumerable<BackgroundTransferContentPart> parts);
function createUploadAsync(uri, parts)
Public Function CreateUploadAsync (uri As Uri, parts As IEnumerable(Of BackgroundTransferContentPart)) As IAsyncOperation(Of UploadOperation)

参数

uri
Uri Uri

上传的位置。

返回

生成的异步 UploadOperation

属性

另请参阅

适用于

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>, String)

返回一个异步操作,该操作在完成后返回具有指定 URI 的 UploadOperation 、一个或多个 BackgroundTransferContentPart 对象以及多部分子类型。

public:
 virtual IAsyncOperation<UploadOperation ^> ^ CreateUploadAsync(Uri ^ uri, IIterable<BackgroundTransferContentPart ^> ^ parts, Platform::String ^ subType) = CreateUploadAsync;
/// [Windows.Foundation.Metadata.Overload("CreateUploadWithSubTypeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UploadOperation> CreateUploadAsync(Uri const& uri, IIterable<BackgroundTransferContentPart> const& parts, winrt::hstring const& subType);
[Windows.Foundation.Metadata.Overload("CreateUploadWithSubTypeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UploadOperation> CreateUploadAsync(System.Uri uri, IEnumerable<BackgroundTransferContentPart> parts, string subType);
function createUploadAsync(uri, parts, subType)
Public Function CreateUploadAsync (uri As Uri, parts As IEnumerable(Of BackgroundTransferContentPart), subType As String) As IAsyncOperation(Of UploadOperation)

参数

uri
Uri Uri

上传的位置。

subType
String

Platform::String

winrt::hstring

多部分子类型。 例如,类型为“multipart/related”的内容的“related ”。

返回

生成的异步 UploadOperation

属性

另请参阅

适用于

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>, String, String)

返回一个异步操作,该操作在完成后返回 UploadOperation ,其中包含指定的 URI、多部分子类型、一个或多个 BackgroundTransferContentPart 对象以及用于分隔每个部分的分隔符边界值。

public:
 virtual IAsyncOperation<UploadOperation ^> ^ CreateUploadAsync(Uri ^ uri, IIterable<BackgroundTransferContentPart ^> ^ parts, Platform::String ^ subType, Platform::String ^ boundary) = CreateUploadAsync;
/// [Windows.Foundation.Metadata.Overload("CreateUploadWithSubTypeAndBoundaryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UploadOperation> CreateUploadAsync(Uri const& uri, IIterable<BackgroundTransferContentPart> const& parts, winrt::hstring const& subType, winrt::hstring const& boundary);
[Windows.Foundation.Metadata.Overload("CreateUploadWithSubTypeAndBoundaryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UploadOperation> CreateUploadAsync(System.Uri uri, IEnumerable<BackgroundTransferContentPart> parts, string subType, string boundary);
function createUploadAsync(uri, parts, subType, boundary)
Public Function CreateUploadAsync (uri As Uri, parts As IEnumerable(Of BackgroundTransferContentPart), subType As String, boundary As String) As IAsyncOperation(Of UploadOperation)

参数

uri
Uri Uri

上传的位置。

subType
String

Platform::String

winrt::hstring

多部分子类型。 例如,类型为“multipart/related”的内容的“related ”。

boundary
String

Platform::String

winrt::hstring

一个字符串,用于标识用于指示提供的内容部件之间的分隔符。

返回

生成的异步 UploadOperation

属性

另请参阅

适用于