ModelBindingExecutionContext(HttpContextBase, ModelStateDictionary) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 HTTP 內容和模型狀態,初始化 ModelBindingExecutionContext 類別的新執行個體。
public:
ModelBindingExecutionContext(System::Web::HttpContextBase ^ httpContext, System::Web::ModelBinding::ModelStateDictionary ^ modelState);
public ModelBindingExecutionContext (System.Web.HttpContextBase httpContext, System.Web.ModelBinding.ModelStateDictionary modelState);
new System.Web.ModelBinding.ModelBindingExecutionContext : System.Web.HttpContextBase * System.Web.ModelBinding.ModelStateDictionary -> System.Web.ModelBinding.ModelBindingExecutionContext
Public Sub New (httpContext As HttpContextBase, modelState As ModelStateDictionary)
參數
- httpContext
- HttpContextBase
HTTP 內容。
- modelState
- ModelStateDictionary
模型狀態。
例外狀況
httpContext
或 modelState
參數為 null
。