共用方式為


InvalidModelStateResult.ModelState 屬性

定義

取得要包含在錯誤中的模型狀態。

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

屬性值

適用於