ModelState.Errors Property

Returns a list of strings that contains any errors that occurred during model binding.

Namespace:  System.Web.WebPages.Html
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public ReadOnly Property Errors As IList(Of String)
    Get
'Usage
Dim instance As ModelState 
Dim value As IList(Of String)

value = instance.Errors
public IList<string> Errors { get; }
public:
property IList<String^>^ Errors {
    IList<String^>^ get ();
}
member Errors : IList<string>
function get Errors () : IList<String>

Property Value

Type: System.Collections.Generic.IList<String>
The errors that occurred during model binding.

See Also

Reference

ModelState Class

System.Web.WebPages.Html Namespace