Share via


IHttpMaxRequestBodySizeFeature.MaxRequestBodySize 属性

定义

当前请求正文允许的最大大小(以字节为单位)。 如果设置为 null,则最大请求正文大小不受限制。 读取请求正文后,无法修改此内容。 此限制不会影响始终不受限制的已升级连接。

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)

属性值

注解

默认为服务器的全局最大请求正文大小限制。

适用于