RequestFormReaderExtensions.ReadFormAsync(HttpRequest, FormOptions, CancellationToken) RequestFormReaderExtensions.ReadFormAsync(HttpRequest, FormOptions, CancellationToken) Method

Definition

Read the request body as a form with the given options. These options will only be used if the form has not already been read.

public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection> ReadFormAsync (this Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.Features.FormOptions options, System.Threading.CancellationToken cancellationToken = null);
static member ReadFormAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.Features.FormOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection>

Parameters

request
HttpRequest HttpRequest

The request.

options
FormOptions FormOptions

Options for reading the form.

Returns

The parsed form.

Applies to