RoutingEndpointConventionBuilderExtensions.WithFormMappingOptions<TBuilder> Metoda

Definicja

Konfiguruje FormMappingOptionsMetadata dla wszystkich punktów końcowych utworzonych w obiekcie docelowym IEndpointConventionBuilder.

public static TBuilder WithFormMappingOptions<TBuilder> (this TBuilder builder, int? maxCollectionSize = default, int? maxRecursionDepth = default, int? maxKeySize = default) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member WithFormMappingOptions : 'Builder * Nullable<int> * Nullable<int> * Nullable<int> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function WithFormMappingOptions(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, Optional maxCollectionSize As Nullable(Of Integer) = Nothing, Optional maxRecursionDepth As Nullable(Of Integer) = Nothing, Optional maxKeySize As Nullable(Of Integer) = Nothing) As TBuilder

Parametry typu

TBuilder

Parametry

builder
TBuilder

Element IEndpointConventionBuilder.

maxCollectionSize
Nullable<Int32>

Maksymalna liczba elementów dozwolonych w kolekcji formularzy. Wartość domyślna to DefaultValueCountLimit>.

maxRecursionDepth
Nullable<Int32>

Maksymalna głębokość dozwolona podczas cyklicznego mapowania danych formularza. Wartość domyślna to 64.

maxKeySize
Nullable<Int32>

Maksymalny rozmiar buforu używanego do odczytywania kluczy danych formularza. Wartości domyślne DefaultKeyLengthLimit

Zwraca

TBuilder

Element IEndpointConventionBuilder.

Dotyczy