Share via


HttpRequest.ReadFormAsync(CancellationToken) Method

Definition

Reads the request body if it is a form.

public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection> ReadFormAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member ReadFormAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection>
Public MustOverride Function ReadFormAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IFormCollection)

Parameters

cancellationToken
CancellationToken

Returns

Exceptions

incorrect content-type.

Applies to