次の方法で共有


ApiBehaviorOptions.InvalidModelStateResponseFactory プロパティ

定義

無効な ModelStateDictionary を に変換するために、 でApiControllerAttribute注釈が付けられたアクションに対して呼び出されたデリゲート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)

プロパティ値

適用対象