MvcForm Constructor
Initializes a new instance of the MvcForm class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | MvcForm(HttpResponseBase) | Obsolete.Initializes a new instance of the MvcForm class using the specified HTTP response object. |
![]() | MvcForm(ViewContext) | Initializes a new instance of the MvcForm class using the specified view context. |
MvcForm Constructor (HttpResponseBase)
Note: This API is now obsolete.Initializes a new instance of the MvcForm class using the specified HTTP response object.
<ObsoleteAttribute("This constructor is obsolete, because its functionality has been moved to MvcForm(ViewContext) now.", True)> Public Sub New ( httpResponse As HttpResponseBase )
Parameters
- httpResponse
-
Type:
System.Web.HttpResponseBase
The HTTP response object.
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpResponse parameter is null. |
MvcForm Constructor (ViewContext)
Initializes a new instance of the MvcForm class using the specified view context.
Parameters
- viewContext
-
Type:
System.Web.Mvc.ViewContext
An object that encapsulates the information that is required in order to render a view.
| Exception | Condition |
|---|---|
| ArgumentNullException | The viewContext parameter is null. |
Show:
