ModelState.Errors Property

 

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

Namespace:   System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

public ModelErrorCollection Errors { get; }
public:
property ModelErrorCollection^ Errors {
    ModelErrorCollection^ get();
}
member Errors : ModelErrorCollection with get
Public ReadOnly Property Errors As ModelErrorCollection

Property Value

Type: System.Web.Http.ModelBinding.ModelErrorCollection

The model state errors.

See Also

ModelState Class
System.Web.Http.ModelBinding Namespace

Return to top