ApiBehaviorOptions.InvalidModelStateResponseFactory Property

Definition

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

public:
 property Func<Microsoft::AspNetCore::Mvc::ActionContext ^, Microsoft::AspNetCore::Mvc::IActionResult ^> ^ InvalidModelStateResponseFactory { Func<Microsoft::AspNetCore::Mvc::ActionContext ^, Microsoft::AspNetCore::Mvc::IActionResult ^> ^ get(); void set(Func<Microsoft::AspNetCore::Mvc::ActionContext ^, Microsoft::AspNetCore::Mvc::IActionResult ^> ^ value); };
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