Share via


FormExtensions.BeginForm Method

 

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

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static BeginForm<TController>(HtmlHelper, Expression<Action<TController>>)

System_CAPS_pubmethodSystem_CAPS_static BeginForm<TController>(HtmlHelper, Expression<Action<TController>>, FormMethod)

System_CAPS_pubmethodSystem_CAPS_static BeginForm<TController>(HtmlHelper, Expression<Action<TController>>, FormMethod, IDictionary<String, Object>)

System_CAPS_pubmethodSystem_CAPS_static 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

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

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

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

Return Value

Type: System.Web.Mvc.Html.MvcForm

Type Parameters

  • TController

Return to top