Freigeben über


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)

Syntax

'Declaration
Public Sub New ( _
    viewContext As ViewContext _
)
public MvcForm(
    ViewContext viewContext
)
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.

Exceptions

Exception Condition
ArgumentNullException

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

See Also

Reference

MvcForm Class

MvcForm Overload

System.Web.Mvc.Html Namespace