ApiBehaviorOptions.InvalidModelStateResponseFactory Özellik

Tanım

Geçersiz ModelStateDictionary öğeyi bir öğeye dönüştürmek için açıklama ek açıklamalı ApiControllerAttribute eylemlerde çağrılan temsilciIActionResult

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)

Özellik Değeri

Şunlara uygulanır