HtmlHelper.GetFormMethodString(FormMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the HTTP method that handles form input (GET or POST) as a string.
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
Parameters
- method
- FormMethod
The HTTP method that handles the form.
Returns
The form method string, either "get" or "post".
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for