HtmlHelper.GetFormMethodString(FormMethod) 方法

定義

以字串形式傳回處理表單輸入的 HTTP 方法 (GET 或 POST) 轉換成字串。

public static string GetFormMethodString (System.Web.Mvc.FormMethod method);
static member GetFormMethodString : System.Web.Mvc.FormMethod -> string
Public Shared Function GetFormMethodString (method As FormMethod) As String

參數

method
FormMethod

處理表單的 HTTP 方法。

傳回

表單方法字串,為 "get" 或 "post"。

適用於