InvalidModelStateResult.ModelState 属性

定义

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

public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get; }
member this.ModelState : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public ReadOnly Property ModelState As ModelStateDictionary

属性值

适用于