ModelState.Errors 属性

定义

返回字符串的列表,该列表包含在模型绑定期间发生的任何错误。

public System.Collections.Generic.IList<string> Errors { get; }
member this.Errors : System.Collections.Generic.IList<string>
Public ReadOnly Property Errors As IList(Of String)

属性值

在模型绑定期间发生的错误。

适用于