共用方式為


BaseRequest.SendMultiPartRequestAsync Method

Definition

Sends the multipart request.

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

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

The HttpResponseMessage object.

Applies to