共用方式為


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

傳回

例外狀況

不正確的內容類型。

適用於