ModelBindingExecutionContext Constructor (HttpContextBase, ModelStateDictionary)

.NET Framework (current version)
 

Initializes a new instance of the ModelBindingExecutionContext class, using the HTTP context and the model state.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public ModelBindingExecutionContext(
	HttpContextBase httpContext,
	ModelStateDictionary modelState
)

Parameters

httpContext
Type: System.Web.HttpContextBase

The HTTP context.

modelState
Type: System.Web.ModelBinding.ModelStateDictionary

The model state.

Exception Condition
ArgumentNullException

The httpContext or modelState parameter is null.

.NET Framework
Available since 4.5
Return to top
Show: