Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public ModelErrorCollection Errors { get; }

Property Value

Type: System.Web.Mvc.ModelErrorCollection

The errors.

Return to top
Show:
© 2015 Microsoft