ApiBehaviorOptions.InvalidModelStateResponseFactory ApiBehaviorOptions.InvalidModelStateResponseFactory ApiBehaviorOptions.InvalidModelStateResponseFactory Property

Definition

Delegate invoked on actions annotated with ApiControllerAttribute to convert invalid ModelStateDictionary into an IActionResult

public Func<Microsoft.AspNetCore.Mvc.ActionContext,Microsoft.AspNetCore.Mvc.IActionResult> InvalidModelStateResponseFactory { get; set; }
member this.InvalidModelStateResponseFactory : Func<Microsoft.AspNetCore.Mvc.ActionContext, Microsoft.AspNetCore.Mvc.IActionResult> with get, set
Public Property InvalidModelStateResponseFactory As Func(Of ActionContext, IActionResult)

Property Value

Applies to