RequestFormLimitsAttribute RequestFormLimitsAttribute RequestFormLimitsAttribute RequestFormLimitsAttribute Class

Definition

Sets the specified limits to the Form.

public ref class RequestFormLimitsAttribute : 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 RequestFormLimitsAttribute : Attribute, Microsoft.AspNetCore.Mvc.Filters.IFilterFactory, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
type RequestFormLimitsAttribute = class
    inherit Attribute
    interface IFilterFactory
    interface IFilterMetadata
    interface IOrderedFilter
Public Class RequestFormLimitsAttribute
Inherits Attribute
Implements IFilterFactory, IOrderedFilter
Inheritance
RequestFormLimitsAttributeRequestFormLimitsAttributeRequestFormLimitsAttributeRequestFormLimitsAttribute
Attributes
Implements

Constructors

RequestFormLimitsAttribute() RequestFormLimitsAttribute() RequestFormLimitsAttribute() RequestFormLimitsAttribute()

Properties

BufferBody BufferBody BufferBody BufferBody

Enables full request body buffering. Use this if multiple components need to read the raw stream. The default value is false.

BufferBodyLengthLimit BufferBodyLengthLimit BufferBodyLengthLimit BufferBodyLengthLimit

If BufferBody is enabled, this is the limit for the total number of bytes that will be buffered. Forms that exceed this limit will throw an InvalidDataException when parsed.

IsReusable IsReusable IsReusable IsReusable
KeyLengthLimit KeyLengthLimit KeyLengthLimit KeyLengthLimit

A limit on the length of individual keys. Forms containing keys that exceed this limit will throw an InvalidDataException when parsed.

MemoryBufferThreshold MemoryBufferThreshold MemoryBufferThreshold MemoryBufferThreshold

If BufferBody is enabled, this many bytes of the body will be buffered in memory. If this threshold is exceeded then the buffer will be moved to a temp file on disk instead. This also applies when buffering individual multipart section bodies.

MultipartBodyLengthLimit MultipartBodyLengthLimit MultipartBodyLengthLimit MultipartBodyLengthLimit

A limit for the length of each multipart body. Forms sections that exceed this limit will throw an InvalidDataException when parsed.

MultipartBoundaryLengthLimit MultipartBoundaryLengthLimit MultipartBoundaryLengthLimit MultipartBoundaryLengthLimit

A limit for the length of the boundary identifier. Forms with boundaries that exceed this limit will throw an InvalidDataException when parsed.

MultipartHeadersCountLimit MultipartHeadersCountLimit MultipartHeadersCountLimit MultipartHeadersCountLimit

A limit for the number of headers to allow in each multipart section. Headers with the same name will be combined. Form sections that exceed this limit will throw an InvalidDataException when parsed.

MultipartHeadersLengthLimit MultipartHeadersLengthLimit MultipartHeadersLengthLimit MultipartHeadersLengthLimit

A limit for the total length of the header keys and values in each multipart section. Form sections that exceed this limit will throw an InvalidDataException when parsed.

Order Order Order Order

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

ValueCountLimit ValueCountLimit ValueCountLimit ValueCountLimit

A limit for the number of form entries to allow. Forms that exceed this limit will throw an InvalidDataException when parsed.

ValueLengthLimit ValueLengthLimit ValueLengthLimit ValueLengthLimit

A limit on the length of individual form values. Forms containing values that exceed this limit will throw an InvalidDataException when parsed.

Methods

CreateInstance(IServiceProvider) CreateInstance(IServiceProvider) CreateInstance(IServiceProvider) CreateInstance(IServiceProvider)

Applies to