HtmlHelper.GetFormMethodString(FormMethod) Metodo

Definizione

Restituisce il metodo HTTP che gestisce l'input (GET o POST) del form come stringa.

C#
public static string GetFormMethodString (Microsoft.AspNetCore.Mvc.Rendering.FormMethod method);

Parametri

method
FormMethod

Metodo HTTP che gestisce il form.

Restituisce

Stringa del metodo del form, "get" o "post".

Si applica a

Prodotto Versioni
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0