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 System::String ^ GetFormMethodString(Microsoft::AspNetCore::Mvc::Rendering::FormMethod method);
public static string GetFormMethodString (Microsoft.AspNetCore.Mvc.Rendering.FormMethod method);
static member GetFormMethodString : Microsoft.AspNetCore.Mvc.Rendering.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".