HttpRequest.ReadFormAsync(CancellationToken) 方法

定义

如果请求正文是窗体,则读取请求正文。

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)

参数

cancellationToken
CancellationToken

返回

例外

内容类型不正确。

适用于