HtmlHelperExtensions.BeginResourceForm Method (HtmlHelper, String, Object, ActionType)

Generates the Form preamble.

Namespace:  Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function BeginResourceForm ( _
    html As HtmlHelper, _
    controllerName As String, _
    routeValues As Object, _
    actionType As ActionType _
) As MvcForm
'Usage
Dim html As HtmlHelper 
Dim controllerName As String 
Dim routeValues As Object 
Dim actionType As ActionType 
Dim returnValue As MvcForm 

returnValue = html.BeginResourceForm(controllerName, _
    routeValues, actionType)
public static MvcForm BeginResourceForm(
    this HtmlHelper html,
    string controllerName,
    Object routeValues,
    ActionType actionType
)
[ExtensionAttribute]
public:
static MvcForm^ BeginResourceForm(
    HtmlHelper^ html, 
    String^ controllerName, 
    Object^ routeValues, 
    ActionType actionType
)
static member BeginResourceForm : 
        html:HtmlHelper * 
        controllerName:string * 
        routeValues:Object * 
        actionType:ActionType -> MvcForm
public static function BeginResourceForm(
    html : HtmlHelper, 
    controllerName : String, 
    routeValues : Object, 
    actionType : ActionType
) : MvcForm

Parameters

  • routeValues
    Type: System.Object
    An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Return Value

Type: System.Web.Mvc.Html.MvcForm
An opening form tag.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).

See Also

Reference

HtmlHelperExtensions Class

BeginResourceForm Overload

Microsoft.Web.Mvc.Resources Namespace