RequestFormReaderExtensions.ReadFormAsync 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.

C#
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 = default);

Parameters

request
HttpRequest

The request.

options
FormOptions

Options for reading the form.

cancellationToken
CancellationToken

Returns

The parsed form.

Applies to

Product Versies
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0