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)

Syntax

'Declaration
<ObsoleteAttribute("The recommended alternative is the constructor MvcForm(ViewContext viewContext).",  _
    True)> _
Public Sub New ( _
    httpResponse As HttpResponseBase _
)
[ObsoleteAttribute("The recommended alternative is the constructor MvcForm(ViewContext viewContext).", 
    true)]
public MvcForm(
    HttpResponseBase httpResponse
)
[ObsoleteAttribute(L"The recommended alternative is the constructor MvcForm(ViewContext viewContext).", 
    true)]
public:
MvcForm(
    HttpResponseBase^ httpResponse
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The httpResponse parameter is null reference (Nothing in Visual Basic).

See Also

Reference

MvcForm Class

MvcForm Overload

System.Web.Mvc.Html Namespace