Sdílet prostřednictvím


ApiBehaviorOptions.InvalidModelStateResponseFactory Vlastnost

Definice

Delegát vyvolaný u akcí označených poznámkami ApiControllerAttribute k převodu neplatných ModelStateDictionary na 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)

Hodnota vlastnosti

Platí pro