Share via


RoutingEndpointConventionBuilderExtensions.WithFormMappingOptions<TBuilder> Method

Definition

Configures FormMappingOptionsMetadata for all endpoints produced on the target 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

Type Parameters

TBuilder

Parameters

builder
TBuilder

The IEndpointConventionBuilder.

maxCollectionSize
Nullable<Int32>

The maximum number of elements allowed in a form collection. Defaults to DefaultValueCountLimit>.

maxRecursionDepth
Nullable<Int32>

The maximum depth allowed when recursively mapping form data. Defaults to 64.

maxKeySize
Nullable<Int32>

The maximum size of the buffer used to read form data keys. Defaults to DefaultKeyLengthLimit

Returns

TBuilder

The IEndpointConventionBuilder.

Applies to