Page.ModelState 属性

定义

获取包含模型状态和模型绑定验证状态的模型状态字典对象。

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

属性值

ModelStateDictionary

模型状态字典对象。

注解

有关将模型绑定与Web Forms配合使用的教程系列,请参阅模型绑定和Web Forms

适用于