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 | |
---|---|---|
![]() ![]() |
BeginResourceForm(HtmlHelper, String, Object) | Generates the Form preamble, defaulting the link for the Retrieve action. |
![]() ![]() |
BeginResourceForm(HtmlHelper, String, Object, ActionType) | Generates the Form preamble. |
![]() ![]() |
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
html
Type: System.Web.Mvc.HtmlHelperThe html helper instance that this methods extends.
controllerName
Type: System.StringThe string controller name.
routeValues
Type: System.ObjectAn 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
html
Type: System.Web.Mvc.HtmlHelperThe html helper instance that this methods extends.
controllerName
Type: System.StringThe string controller name.
routeValues
Type: System.ObjectAn 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.
actionType
Type: Microsoft.Web.Mvc.Resources.ActionTypeThe action type.
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
html
Type: System.Web.Mvc.HtmlHelperThe html helper instance that this methods extends.
controllerName
Type: System.StringThe string controller name.
routeValues
Type: System.ObjectAn 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.
htmlAttributes
Type: System.ObjectThe html attributes.
actionType
Type: Microsoft.Web.Mvc.Resources.ActionTypeThe action type.
Return Value
Type: System.Web.Mvc.Html.MvcForm
An opening form tag.
Return to top