Dela via


HtmlHelper.GetFormMethodString(FormMethod) Method

Definition

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".

Applies to