Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ModelState Property

ViewDataDictionary.ModelState Property

 

Gets the state of the model.

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

public ModelStateDictionary ModelState { get; }

Property Value

Type: System.Web.Mvc.ModelStateDictionary

The state of the model.

A ModelStateDictionary object encapsulates information about model binding. This information includes the number of properties to bind, the model state, and property keys and values.

Return to top
Show:
© 2015 Microsoft