Partager via


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

'Declaration
Public ReadOnly Property Errors As ModelErrorCollection
    Get
'Usage
Dim instance As ModelState
Dim value As ModelErrorCollection

value = instance.Errors
public ModelErrorCollection Errors { get; }
public:
property ModelErrorCollection^ Errors {
    ModelErrorCollection^ get ();
}
member Errors : ModelErrorCollection
function get Errors () : ModelErrorCollection

Property Value

Type: System.Web.Http.ModelBinding.ModelErrorCollection
The model state errors.

See Also

Reference

ModelState Class

System.Web.Http.ModelBinding Namespace