Page.ModelState 属性
定义
获取包含模型状态和模型绑定验证状态的模型状态字典对象。Gets the model state dictionary object that contains the state of the model and of model-binding validation.
public:
property System::Web::ModelBinding::ModelStateDictionary ^ ModelState { System::Web::ModelBinding::ModelStateDictionary ^ get(); };
public System.Web.ModelBinding.ModelStateDictionary ModelState { get; }
member this.ModelState : System.Web.ModelBinding.ModelStateDictionary
Public ReadOnly Property ModelState As ModelStateDictionary
属性值
模型状态字典对象。The model state dictionary object.
注解
有关如何在 Web 窗体中使用模型绑定的教程系列,请参阅 模型绑定和 Web 窗体。For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.