Method GetMultipartFormContentAsync
GetMultipartFormContentAsync(CancellationToken)
Asynchronously reads the request body and obtains a MultipartFormCollection from it.
public Task<MultipartFormCollection> GetMultipartFormContentAsync(CancellationToken cancellation = default)
Parameters
cancellation
CancellationTokenA CancellationToken to cancel the asynchronous operation.
Returns
- Task<MultipartFormCollection>
A Task that represents the asynchronous operation, containing a MultipartFormCollection instance representing the multipart form content of the request.
Exceptions
- HttpRequestException
If an error occurs while parsing the multipart form content.