共用方式為


ModelBindingContext.ModelState 屬性

定義

取得或設定模型狀態。

public:
 property System::Web::ModelBinding::ModelStateDictionary ^ ModelState { System::Web::ModelBinding::ModelStateDictionary ^ get(); void set(System::Web::ModelBinding::ModelStateDictionary ^ value); };
public System.Web.ModelBinding.ModelStateDictionary ModelState { get; set; }
member this.ModelState : System.Web.ModelBinding.ModelStateDictionary with get, set
Public Property ModelState As ModelStateDictionary

屬性值

模型狀態,或ModelStateDictionary的新執行個體(如果模型狀態尚不存在)。

適用於