共用方式為


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

傳回

已剖析的表單。

適用於