FormExtensions.BeginRouteForm 方法

定義

多載

BeginRouteForm(HtmlHelper, String, Object, FormMethod, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, FormMethod, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, FormMethod, IDictionary<String,Object>)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, Object, FormMethod)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, FormMethod)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, RouteValueDictionary)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, RouteValueDictionary)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

BeginRouteForm(HtmlHelper, String, Object, FormMethod, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues, System.Web.Mvc.FormMethod method, object htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.FormMethod * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As Object, method As FormMethod, htmlAttributes As Object) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
Object

包含路徑參數的物件。 這些參數是藉由檢查物件之屬性,透過反映所擷取而來。 此物件通常是使用物件初始設定式語法來建立。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

htmlAttributes
Object

物件,包含要針對項目設定的 HTML 屬性。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As RouteValueDictionary, method As FormMethod) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
RouteValueDictionary

包含路由參數的物件。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, FormMethod, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method, object htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, method As FormMethod, htmlAttributes As Object) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

htmlAttributes
Object

物件,包含要針對項目設定的 HTML 屬性。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, FormMethod, IDictionary<String,Object>)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, method As FormMethod, htmlAttributes As IDictionary(Of String, Object)) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

htmlAttributes
IDictionary<String,Object>

物件,包含要針對項目設定的 HTML 屬性。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, Object, FormMethod)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As Object, method As FormMethod) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
Object

包含路徑參數的物件。 這些參數是藉由檢查物件之屬性,透過反映所擷取而來。 此物件通常是使用物件初始設定式語法來建立。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, Object)

將開頭 < 表單 > 標記寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, object routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As Object) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
Object

包含路徑參數的物件。 這些參數是藉由檢查物件之屬性,透過反映所擷取而來。 此物件通常是使用物件初始設定式語法來建立。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, FormMethod)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Mvc.FormMethod method);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.FormMethod -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, method As FormMethod) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, RouteValueDictionary)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, System.Web.Routing.RouteValueDictionary routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeValues As RouteValueDictionary) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeValues
RouteValueDictionary

包含路由參數的物件。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, Object)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, object routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * obj -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeValues As Object) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeValues
Object

包含路徑參數的物件。 這些參數是藉由檢查物件之屬性,透過反映所擷取而來。 此物件通常是使用物件初始設定式語法來建立。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, RouteValueDictionary, FormMethod, IDictionary<String,Object>)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Mvc.FormMethod method, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary * System.Web.Mvc.FormMethod * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As RouteValueDictionary, method As FormMethod, htmlAttributes As IDictionary(Of String, Object)) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
RouteValueDictionary

包含路由參數的物件。

method
FormMethod

用於處理此表單的 HTTP 方法。可以是 GET 或 POST。

htmlAttributes
IDictionary<String,Object>

物件,包含要針對項目設定的 HTML 屬性。

傳回

開啟 < 的表單 > 標籤。

適用於

BeginRouteForm(HtmlHelper, String, RouteValueDictionary)

將開啟 < 的表單 > 標籤寫入回應。 當使用者提交表單時,要求會由路由目標處理。

public static System.Web.Mvc.Html.MvcForm BeginRouteForm (this System.Web.Mvc.HtmlHelper htmlHelper, string routeName, System.Web.Routing.RouteValueDictionary routeValues);
static member BeginRouteForm : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.Html.MvcForm
<Extension()>
Public Function BeginRouteForm (htmlHelper As HtmlHelper, routeName As String, routeValues As RouteValueDictionary) As MvcForm

參數

htmlHelper
HtmlHelper

此方法擴充的 HTML Helper 執行個體。

routeName
String

用來取得表單張貼 URL 之路由的名稱。

routeValues
RouteValueDictionary

包含路由參數的物件。

傳回

開啟 < 的表單 > 標籤。

適用於