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