FormExtensions.BeginForm Method
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
BeginForm<TController>(HtmlHelper, Expression<Action<TController>>) | |
![]() ![]() |
BeginForm<TController>(HtmlHelper, Expression<Action<TController>>, FormMethod) | |
![]() ![]() |
BeginForm<TController>(HtmlHelper, Expression<Action<TController>>, FormMethod, IDictionary<String, Object>) | |
![]() ![]() |
BeginForm<TController>(HtmlHelper, Expression<Action<TController>>, FormMethod, Object) |
See Also
FormExtensions Class
Microsoft.Web.Mvc Namespace
Return to top
FormExtensions.BeginForm<TController> Method (HtmlHelper, Expression<Action<TController>>)
Syntax
public static MvcForm BeginForm<TController>(
this HtmlHelper helper,
Expression<Action<TController>> action
)
where TController : Controller
public:
generic<typename TController>
where TController : Controller
[ExtensionAttribute]
static MvcForm^ BeginForm(
HtmlHelper^ helper,
Expression<Action<TController>^>^ action
)
static member BeginForm<'TController when 'TController : Controller> :
helper:HtmlHelper *
action:Expression<Action<'TController>> -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginForm(Of TController As Controller) (
helper As HtmlHelper,
action As Expression(Of Action(Of TController))
) As MvcForm
Parameters
- helper
Type: System.Web.Mvc.HtmlHelper
- action
Type: System.Linq.Expressions.Expression<Action<TController>>
Return Value
Type: System.Web.Mvc.Html.MvcForm
Type Parameters
- TController
Return to top
FormExtensions.BeginForm<TController> Method (HtmlHelper, Expression<Action<TController>>, FormMethod)
Syntax
public static MvcForm BeginForm<TController>(
this HtmlHelper helper,
Expression<Action<TController>> action,
FormMethod method
)
where TController : Controller
public:
generic<typename TController>
where TController : Controller
[ExtensionAttribute]
static MvcForm^ BeginForm(
HtmlHelper^ helper,
Expression<Action<TController>^>^ action,
FormMethod method
)
static member BeginForm<'TController when 'TController : Controller> :
helper:HtmlHelper *
action:Expression<Action<'TController>> *
method:FormMethod -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginForm(Of TController As Controller) (
helper As HtmlHelper,
action As Expression(Of Action(Of TController)),
method As FormMethod
) As MvcForm
Parameters
- helper
Type: System.Web.Mvc.HtmlHelper
- action
Type: System.Linq.Expressions.Expression<Action<TController>>
- method
Type: System.Web.Mvc.FormMethod
Return Value
Type: System.Web.Mvc.Html.MvcForm
Type Parameters
- TController
Return to top
FormExtensions.BeginForm<TController> Method (HtmlHelper, Expression<Action<TController>>, FormMethod, IDictionary<String, Object>)
Syntax
public static MvcForm BeginForm<TController>(
this HtmlHelper helper,
Expression<Action<TController>> action,
FormMethod method,
IDictionary<string, object> htmlAttributes
)
where TController : Controller
public:
generic<typename TController>
where TController : Controller
[ExtensionAttribute]
static MvcForm^ BeginForm(
HtmlHelper^ helper,
Expression<Action<TController>^>^ action,
FormMethod method,
IDictionary<String^, Object^>^ htmlAttributes
)
static member BeginForm<'TController when 'TController : Controller> :
helper:HtmlHelper *
action:Expression<Action<'TController>> *
method:FormMethod *
htmlAttributes:IDictionary<string, Object> -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginForm(Of TController As Controller) (
helper As HtmlHelper,
action As Expression(Of Action(Of TController)),
method As FormMethod,
htmlAttributes As IDictionary(Of String, Object)
) As MvcForm
Parameters
- helper
Type: System.Web.Mvc.HtmlHelper
- action
Type: System.Linq.Expressions.Expression<Action<TController>>
- method
Type: System.Web.Mvc.FormMethod
- htmlAttributes
Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.Html.MvcForm
Type Parameters
- TController
Return to top
FormExtensions.BeginForm<TController> Method (HtmlHelper, Expression<Action<TController>>, FormMethod, Object)
Syntax
public static MvcForm BeginForm<TController>(
this HtmlHelper helper,
Expression<Action<TController>> action,
FormMethod method,
object htmlAttributes
)
where TController : Controller
public:
generic<typename TController>
where TController : Controller
[ExtensionAttribute]
static MvcForm^ BeginForm(
HtmlHelper^ helper,
Expression<Action<TController>^>^ action,
FormMethod method,
Object^ htmlAttributes
)
static member BeginForm<'TController when 'TController : Controller> :
helper:HtmlHelper *
action:Expression<Action<'TController>> *
method:FormMethod *
htmlAttributes:Object -> MvcForm
<ExtensionAttribute>
Public Shared Function BeginForm(Of TController As Controller) (
helper As HtmlHelper,
action As Expression(Of Action(Of TController)),
method As FormMethod,
htmlAttributes As Object
) As MvcForm
Parameters
- helper
Type: System.Web.Mvc.HtmlHelper
- action
Type: System.Linq.Expressions.Expression<Action<TController>>
- method
Type: System.Web.Mvc.FormMethod
- htmlAttributes
Type: System.Object
Return Value
Type: System.Web.Mvc.Html.MvcForm
Type Parameters
- TController
Return to top