DisableRequestSizeLimitAttribute Class

Definition

Disables the request body size limit.

public ref class DisableRequestSizeLimitAttribute : Attribute, Microsoft::AspNetCore::Mvc::Filters::IFilterFactory, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class DisableRequestSizeLimitAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class DisableRequestSizeLimitAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IRequestSizeLimitMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type DisableRequestSizeLimitAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
    interface IOrderedFilter
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type DisableRequestSizeLimitAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
    interface IOrderedFilter
    interface IRequestSizeLimitMetadata
Public Class DisableRequestSizeLimitAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter
Public Class DisableRequestSizeLimitAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter, IRequestSizeLimitMetadata
Inheritance
DisableRequestSizeLimitAttribute
Attributes
Implements

Remarks

Disabling the request body size limit can be a security concern in regards to uncontrolled resource consumption, particularly if the request body is being buffered.

Constructors

DisableRequestSizeLimitAttribute()

Properties

IsReusable

Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests.

Order

Gets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property.

Methods

CreateInstance(IServiceProvider)

Creates an instance of the executable filter.

Explicit Interface Implementations

IRequestSizeLimitMetadata.MaxRequestBodySize

The maximum allowed size of the current request body in bytes.

Applies to