Delen via


ControllerBase.ModelState Property

Definition

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

public:
 property Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ ModelState { Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ get(); };
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get; }
member this.ModelState : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public ReadOnly Property ModelState As ModelStateDictionary

Property Value

Applies to