다음을 통해 공유


ApiBehaviorOptions.InvalidModelStateResponseFactory 속성

정의

로 주석이 추가된 작업에 대해 호출된 ApiControllerAttribute 대리자는 잘못된 ModelStateDictionary 를 로 변환합니다. 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)

속성 값

적용 대상