RequestFormReaderExtensions.ReadFormAsync 方法

定义

将请求正文作为具有给定选项的表单读取。 仅当尚未读取表单时,才会使用这些选项。

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);
static member ReadFormAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.Features.FormOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IFormCollection>
<Extension()>
Public Function ReadFormAsync (request As HttpRequest, options As FormOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IFormCollection)

参数

request
HttpRequest

请求。

options
FormOptions

用于读取表单的选项。

cancellationToken
CancellationToken

返回

已分析的窗体。

适用于