Share via


HtmlHelperExtensions.BeginResourceForm Method

 

Generates the Form preamble.

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static BeginResourceForm(HtmlHelper, String, Object)

Generates the Form preamble, defaulting the link for the Retrieve action.

System_CAPS_pubmethodSystem_CAPS_static BeginResourceForm(HtmlHelper, String, Object, ActionType)

Generates the Form preamble.

System_CAPS_pubmethodSystem_CAPS_static BeginResourceForm(HtmlHelper, String, Object, Object, ActionType)

Generates the Form preamble.

See Also

HtmlHelperExtensions Class
Microsoft.Web.Mvc.Resources Namespace

Return to top

HtmlHelperExtensions.BeginResourceForm Method (HtmlHelper, String, Object)

Generates the Form preamble, defaulting the link for the Retrieve action.

Syntax

public static MvcForm BeginResourceForm(
    this HtmlHelper html,
    string controllerName,
    object routeValues
)
public:
[ExtensionAttribute]
static MvcForm^ BeginResourceForm(
    HtmlHelper^ html,
    String^ controllerName,
    Object^ routeValues
)
static member BeginResourceForm : 
        html:HtmlHelper *
        controllerName:string *
        routeValues:Object -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginResourceForm (
    html As HtmlHelper,
    controllerName As String,
    routeValues As Object
) As 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.

Return to top

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

Generates the Form preamble.

Syntax

public static MvcForm BeginResourceForm(
    this HtmlHelper html,
    string controllerName,
    object routeValues,
    ActionType actionType
)
public:
[ExtensionAttribute]
static MvcForm^ BeginResourceForm(
    HtmlHelper^ html,
    String^ controllerName,
    Object^ routeValues,
    ActionType actionType
)
static member BeginResourceForm : 
        html:HtmlHelper *
        controllerName:string *
        routeValues:Object *
        actionType:ActionType -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginResourceForm (
    html As HtmlHelper,
    controllerName As String,
    routeValues As Object,
    actionType As ActionType
) As 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.

Return to top

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

Generates the Form preamble.

Syntax

public static MvcForm BeginResourceForm(
    this HtmlHelper html,
    string controllerName,
    object routeValues,
    object htmlAttributes,
    ActionType actionType
)
public:
[ExtensionAttribute]
static MvcForm^ BeginResourceForm(
    HtmlHelper^ html,
    String^ controllerName,
    Object^ routeValues,
    Object^ htmlAttributes,
    ActionType actionType
)
static member BeginResourceForm : 
        html:HtmlHelper *
        controllerName:string *
        routeValues:Object *
        htmlAttributes:Object *
        actionType:ActionType -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginResourceForm (
    html As HtmlHelper,
    controllerName As String,
    routeValues As Object,
    htmlAttributes As Object,
    actionType As ActionType
) As 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.

Return to top