Share via


ModelState.Errors Property

Definition

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

public System.Web.Mvc.ModelErrorCollection Errors { get; }
member this.Errors : System.Web.Mvc.ModelErrorCollection
Public ReadOnly Property Errors As ModelErrorCollection

Property Value

The errors.

Applies to