MvcForm Constructor (HttpResponseBase)
Note: This API is now obsolete.
Initializes a new instance of the MvcForm class using the specified HTTP response object.
Namespace: System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration <ObsoleteAttribute("This constructor is obsolete, because its functionality has been moved to MvcForm(ViewContext) now.", _ True)> _ Public Sub New ( _ httpResponse As HttpResponseBase _ ) 'Usage Dim httpResponse As HttpResponseBase Dim instance As New MvcForm(httpResponse)
Parameters
- httpResponse
- Type: System.Web.HttpResponseBase
The HTTP response object.
| Exception | Condition |
|---|---|
| ArgumentNullException | The httpResponse parameter is Nothing. |
Show: