Compartilhar via


ModelBindingContext.ModelState Property

Gets or sets the state of the model.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Property ModelState As ModelStateDictionary
    Get
    Set
'Usage
Dim instance As ModelBindingContext
Dim value As ModelStateDictionary

value = instance.ModelState

instance.ModelState = value
public ModelStateDictionary ModelState { get; set; }
public:
property ModelStateDictionary^ ModelState {
    ModelStateDictionary^ get ();
    void set (ModelStateDictionary^ value);
}
member ModelState : ModelStateDictionary with get, set
function get ModelState () : ModelStateDictionary
function set ModelState (value : ModelStateDictionary)

Property Value

Type: System.Web.Http.ModelBinding.ModelStateDictionary
The state of the model.

See Also

Reference

ModelBindingContext Class

System.Web.Http.ModelBinding Namespace