MvcForm Constructor

 

Initializes a new instance of the MvcForm class.

Namespace:   System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodMvcForm(HttpResponseBase)

Obsolete.Initializes a new instance of the MvcForm class using the specified HTTP response object.

System_CAPS_pubmethodMvcForm(ViewContext)

Initializes a new instance of the MvcForm class using the specified view context.

Return to top

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.

Return to top

MvcForm Constructor (ViewContext)

Initializes a new instance of the MvcForm class using the specified view context.

Public Sub New (
	viewContext As ViewContext
)

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.

Return to top
Show: