共用方式為


BackgroundUploader.CreateUploadAsync 方法

定義

多載

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>)

傳回非同步作業,完成時會傳回具有指定 URI 和一或多個BackgroundTransferContentPart物件的UploadOperation

CreateUploadAsync(Uri, IIterable<BackgroundTransferContentPart>, String)

傳回非同步作業,完成時會傳回具有指定 URI 的 UploadOperation 、一或多個 BackgroundTransferContentPart 物件,以及多部分子類型。

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

傳回非同步作業,完成時會傳回具有指定 URI、多部分子類型、一個或多個BackgroundTransferContentPart物件的UploadOperation,以及用來分隔每個元件的分隔符號界限值。

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)

傳回非同步作業,完成時會傳回具有指定 URI、多部分子類型、一個或多個BackgroundTransferContentPart物件的UploadOperation,以及用來分隔每個元件的分隔符號界限值。

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

屬性

另請參閱

適用於