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
。