RoutingEndpointConventionBuilderExtensions.WithFormOptions<TBuilder> Metodo

Definizione

Microsoft.AspNetCore.Http.Metadata.FormOptionsMetadata Configura per tutti gli endpoint generati nella destinazione IEndpointConventionBuilder.

public static TBuilder WithFormOptions<TBuilder> (this TBuilder builder, bool? bufferBody = default, int? memoryBufferThreshold = default, long? bufferBodyLengthLimit = default, int? valueCountLimit = default, int? keyLengthLimit = default, int? valueLengthLimit = default, int? multipartBoundaryLengthLimit = default, int? multipartHeadersCountLimit = default, int? multipartHeadersLengthLimit = default, long? multipartBodyLengthLimit = default) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithFormOptions : 'Builder * Nullable<bool> * Nullable<int> * Nullable<int64> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int64> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithFormOptions(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, Optional bufferBody As Nullable(Of Boolean) = Nothing, Optional memoryBufferThreshold As Nullable(Of Integer) = Nothing, Optional bufferBodyLengthLimit As Nullable(Of Long) = Nothing, Optional valueCountLimit As Nullable(Of Integer) = Nothing, Optional keyLengthLimit As Nullable(Of Integer) = Nothing, Optional valueLengthLimit As Nullable(Of Integer) = Nothing, Optional multipartBoundaryLengthLimit As Nullable(Of Integer) = Nothing, Optional multipartHeadersCountLimit As Nullable(Of Integer) = Nothing, Optional multipartHeadersLengthLimit As Nullable(Of Integer) = Nothing, Optional multipartBodyLengthLimit As Nullable(Of Long) = Nothing) As TBuilder

Parametri di tipo

TBuilder

Parametri

builder
TBuilder

Oggetto IEndpointConventionBuilder.

bufferBody
Nullable<Boolean>

Abilita il buffer completo del corpo della richiesta. Il valore predefinito è false.

memoryBufferThreshold
Nullable<Int32>

Configura il numero di byte del corpo in memoria. Il valore predefinito è pari a 65.536 byte, ovvero circa 64 KB.

bufferBodyLengthLimit
Nullable<Int64>

Limite per il numero totale di byte che verranno memorizzati nel buffer. Il valore predefinito è 128 MB.

valueCountLimit
Nullable<Int32>

Limite per il numero di voci di modulo consentite. Il valore predefinito è DefaultValueCountLimit.

keyLengthLimit
Nullable<Int32>

Limitare la lunghezza di singole chiavi. Il valore predefinito è DefaultKeyLengthLimit.

valueLengthLimit
Nullable<Int32>

Limitare la lunghezza dei singoli valori del modulo. Il valore predefinito è DefaultValueLengthLimit.

multipartBoundaryLengthLimit
Nullable<Int32>

Limite per la lunghezza dell'identificatore di limite. Il valore predefinito è 128 byte.

multipartHeadersCountLimit
Nullable<Int32>

Limite per il numero di intestazioni consentite in ogni sezione multipart. Il valore predefinito è DefaultHeadersCountLimit.

multipartHeadersLengthLimit
Nullable<Int32>

Limite per la lunghezza totale delle chiavi di intestazione e dei valori in ogni sezione multipart. Il valore predefinito è DefaultHeadersLengthLimit.

multipartBodyLengthLimit
Nullable<Int64>

Limite per la lunghezza di ogni corpo multipart. Il valore predefinito è 134.217.728 byte, ovvero circa 128 MB.

Restituisce

TBuilder

Oggetto IEndpointConventionBuilder.

Si applica a