InvalidModelStateResult(ModelStateDictionary, Boolean) 构造函数

定义

初始化 InvalidModelStateResult 类的新实例。

public InvalidModelStateResult (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, bool includeErrorDetail);
new System.Web.Http.InvalidModelStateResult : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * bool -> System.Web.Http.InvalidModelStateResult
Public Sub New (modelState As ModelStateDictionary, includeErrorDetail As Boolean)

参数

modelState
ModelStateDictionary

要在错误中包括的模型状态。

includeErrorDetail
Boolean

true 如果错误应包含异常消息,则为 ;否则为 false

适用于