HttpSysOptions.MaxRequestBodySize 屬性

定義

取得或設定位元組中任何要求主體允許的大小上限。 當設定為 Null 時,要求主體大小上限為無限制。 此限制不會影響一律無限制的升級連線。 這可以透過 IHttpMaxRequestBodySizeFeature 覆寫每個要求。 預設值設定為 30,000,000 個位元組,大約是 28.6MB。

public:
 property Nullable<long> MaxRequestBodySize { Nullable<long> get(); void set(Nullable<long> value); };
public long? MaxRequestBodySize { get; set; }
member this.MaxRequestBodySize : Nullable<int64> with get, set
Public Property MaxRequestBodySize As Nullable(Of Long)

屬性值

備註

預設為 30,000,000 個位元組,大約是 28.6MB。

適用於