.NET Framework Class Library
Controller.ModelState Property
Gets the model state dictionary object that contains the state of the model and of model-binding validation.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public ReadOnly Property ModelState As ModelStateDictionary Get
C#
public ModelStateDictionary ModelState { get; }
Visual C++
public: property ModelStateDictionary^ ModelState { ModelStateDictionary^ get (); }
See Also