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)

new : 
        viewContext:ViewContext -> MvcForm

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 a null reference (Nothing in Visual Basic).

Show: