Compartilhar via


ModelBindingContext.ModelState Property

Gets or sets the state of the model.

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

Syntax

'Declaration
Public Property ModelState As ModelStateDictionary
    Get
    Set
public ModelStateDictionary ModelState { get; set; }
public:
property ModelStateDictionary^ ModelState {
    ModelStateDictionary^ get ();
    void set (ModelStateDictionary^ value);
}

Property Value

Type: System.Web.Mvc.ModelStateDictionary
The state of the model.

See Also

Reference

ModelBindingContext Class

System.Web.Mvc Namespace