共用方式為


BaseRequest.SendMultiPartAsync<T> Method

Definition

Sends the multipart request.

public System.Threading.Tasks.Task<T> SendMultiPartAsync<T> (System.Net.Http.MultipartContent multipartContent, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead);
member this.SendMultiPartAsync : System.Net.Http.MultipartContent * System.Threading.CancellationToken * System.Net.Http.HttpCompletionOption -> System.Threading.Tasks.Task<'T>
Public Function SendMultiPartAsync(Of T) (multipartContent As MultipartContent, cancellationToken As CancellationToken, Optional completionOption As HttpCompletionOption = System.Net.Http.HttpCompletionOption.ResponseContentRead) As Task(Of T)

Type Parameters

T

The expected response object type for deserialization.

Parameters

multipartContent
MultipartContent

The multipart object to send.

cancellationToken
CancellationToken

The CancellationToken for the request.

completionOption
HttpCompletionOption

The HttpCompletionOption to pass to the IHttpProvider on send.

Returns

Task<T>

The deserialized response object.

Applies to