共用方式為


ModelMethodContext.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

屬性值

模型狀態。

備註

如需搭配Web Form使用模型系結的教學課程系列,請參閱模型系結和Web Form

適用於