ModelMethodContext.ModelState 属性
定义
获取模型状态。Gets the model state.
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.
注解
有关如何在 Web 窗体中使用模型绑定的教程系列,请参阅 模型绑定和 Web 窗体。For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.