Share via


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”)。

适用于