RequestFormReaderExtensions Class

Namespace
Microsoft.AspNetCore.Http
Assemblies
  • Microsoft.AspNetCore.Http

Syntax

public class RequestFormReaderExtensions
class Microsoft.AspNetCore.Http.RequestFormReaderExtensions

Methods

ReadFormAsync(Microsoft.AspNetCore.Http.HttpRequest, Microsoft.AspNetCore.Http.Features.FormOptions, System.Threading.CancellationToken)

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.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection>

Returns:

The parsed form.

public static Task<IFormCollection> ReadFormAsync(this HttpRequest request, FormOptions options, CancellationToken cancellationToken = null)