Freigeben über


ModelState.Errors Property

Returns a ModelErrorCollection object that contains any errors that occurred during model binding.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public ReadOnly Property Errors As ModelErrorCollection
    Get
public ModelErrorCollection Errors { get; }
public:
property ModelErrorCollection^ Errors {
    ModelErrorCollection^ get ();
}

Property Value

Type: System.Web.Mvc.ModelErrorCollection
The errors.

See Also

Reference

ModelState Class

System.Web.Mvc Namespace