MvcForm Constructor (ViewContext)

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

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

public:
MvcForm(
	ViewContext^ viewContext
)

Parameters

viewContext
Type: System.Web.Mvc::ViewContext

An object that encapsulates the information that is required in order to render a view.

ExceptionCondition
ArgumentNullException

The viewContext parameter is nullptr.

Show: