Share via


IFormFeature 介面

定義

允許將要求本文讀取為 HTTP 表單。

public interface class IFormFeature
public interface IFormFeature
type IFormFeature = interface
Public Interface IFormFeature
衍生

屬性

Form

取得或設定剖析的表單。

如果使用 或 ReadForm() 讀取 ReadFormAsync(CancellationToken) 要求本文,或明確指派值,則此 API 會傳回非 Null 值。

HasFormContentType

指出要求是否有支援的表單內容類型。

方法

ReadForm()

將要求本文剖析為表單。

如果先前尚未讀取要求本文,此 API 會執行同步 (封鎖) 在 HTTP 輸入資料流程上讀取的同步 (,這些資料流程可能不受支援,或可能會對應用程式效能造成負面影響。 請考慮改用 ReadFormAsync(CancellationToken)

ReadFormAsync(CancellationToken)

將要求本文剖析為表單。

適用於