JsonInputFormatter.ExceptionPolicy 属性

定义

获取标志,以指示正文模型绑定器是否应处理所有异常。 如果处理异常,则正文模型绑定器会将异常转换为模型状态错误,否则允许该异常传播。

public:
 virtual property Microsoft::AspNetCore::Mvc::Formatters::InputFormatterExceptionPolicy ExceptionPolicy { Microsoft::AspNetCore::Mvc::Formatters::InputFormatterExceptionPolicy get(); };
public virtual Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy ExceptionPolicy { get; }
member this.ExceptionPolicy : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterExceptionPolicy
Public Overridable ReadOnly Property ExceptionPolicy As InputFormatterExceptionPolicy

属性值

实现

适用于