HtmlHelperFormExtensions.BeginRouteForm HtmlHelperFormExtensions.BeginRouteForm HtmlHelperFormExtensions.BeginRouteForm Method

Definition

Overloads

BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object) BeginRouteForm(IHtmlHelper, String, FormMethod, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method, object htmlAttributes);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * Microsoft.AspNetCore.Mvc.Rendering.FormMethod * obj -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String, method As FormMethod, htmlAttributes As Object) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

method
FormMethod FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

htmlAttributes
Object Object Object

An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object) BeginRouteForm(IHtmlHelper, Object)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object routeValues);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * obj -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeValues As Object) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeValues
Object Object 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 using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String) BeginRouteForm(IHtmlHelper, String)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, Object, Nullable<Boolean>)

Renders a <form> start tag to the response. The first route that can provide a URL with the specified routeValues generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, object routeValues, Nullable<bool> antiforgery);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * obj * Nullable<bool> -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeValues As Object, antiforgery As Nullable(Of Boolean)) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeValues
Object Object 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 using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

antiforgery
Nullable<Boolean>

If true, <form> elements will include an antiforgery token. If false, suppresses the generation an <input> of type "hidden" with an antiforgery token. If null, <form> elements will include an antiforgery token.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod) BeginRouteForm(IHtmlHelper, String, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * Microsoft.AspNetCore.Mvc.Rendering.FormMethod -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String, method As FormMethod) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

method
FormMethod FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>) BeginRouteForm(IHtmlHelper, String, Nullable<Boolean>)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, Nullable<bool> antiforgery);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * Nullable<bool> -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String, antiforgery As Nullable(Of Boolean)) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

antiforgery
Nullable<Boolean>

If true, <form> elements will include an antiforgery token. If false, suppresses the generation an <input> of type "hidden" with an antiforgery token. If null, <form> elements will include an antiforgery token.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object) BeginRouteForm(IHtmlHelper, String, Object)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, object routeValues);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String, routeValues As Object) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

routeValues
Object Object 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 using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod) BeginRouteForm(IHtmlHelper, String, Object, FormMethod)

Renders a <form> start tag to the response. The route with name routeName generates the <form>'s action attribute value.

public static Microsoft.AspNetCore.Mvc.Rendering.MvcForm BeginRouteForm (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string routeName, object routeValues, Microsoft.AspNetCore.Mvc.Rendering.FormMethod method);
static member BeginRouteForm : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj * Microsoft.AspNetCore.Mvc.Rendering.FormMethod -> Microsoft.AspNetCore.Mvc.Rendering.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As IHtmlHelper, routeName As String, routeValues As Object, method As FormMethod) As MvcForm

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

routeName
String String String

The name of the route.

routeValues
Object Object 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 using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

method
FormMethod FormMethod FormMethod

The HTTP method for processing the form, either GET or POST.

Returns

An MvcForm instance which renders the </form> end tag when disposed.

Remarks

In this context, "renders" means the method writes its output using Writer.

Applies to