Udostępnij za pośrednictwem


Controller.ModelState Property

Gets the model state dictionary object that contains the state of the model and of model-binding validation.

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

Syntax

'Declaration
Public ReadOnly Property ModelState As ModelStateDictionary
    Get
public ModelStateDictionary ModelState { get; }
public:
property ModelStateDictionary^ ModelState {
    ModelStateDictionary^ get ();
}

Property Value

Type: System.Web.Mvc.ModelStateDictionary
The model state dictionary.

See Also

Reference

Controller Class

System.Web.Mvc Namespace