RoutingEndpointConventionBuilderExtensions.WithFormMappingOptions<TBuilder> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 maximum number of elements allowed in a form collection. Defaults to DefaultValueCountLimit>.
The maximum depth allowed when recursively mapping form data. Defaults to 64.
The maximum size of the buffer used to read form data keys. Defaults to DefaultKeyLengthLimit
Returns
The IEndpointConventionBuilder.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for