FormTagHelper Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
ITagHelper implementação direcionando <elementos de formulário> .
public ref class FormTagHelper : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-action")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-antiforgery")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-area")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-controller")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-all-route-data")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route-*")]
public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-action")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-antiforgery")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-area")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-controller")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-all-route-data")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route-*")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-fragment")]
public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form")]
public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-action")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-antiforgery")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-area")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-controller")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-all-route-data")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route-*")>]
type FormTagHelper = class
inherit TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-action")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-antiforgery")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-area")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-controller")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-all-route-data")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-route-*")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form", Attributes="asp-fragment")>]
type FormTagHelper = class
inherit TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("form")>]
type FormTagHelper = class
inherit TagHelper
Public Class FormTagHelper
Inherits TagHelper
- Herança
- Atributos
Construtores
FormTagHelper(IHtmlGenerator) |
Cria um novo FormTagHelper. |
Propriedades
Action |
O nome do método da ação. |
Antiforgery |
Se o token antiforgery deve ser gerado. |
Area |
O nome da área. |
Controller |
O nome do controlador. |
Fragment |
Obtém ou define o fragmento de URL. |
Generator |
Obtém o IHtmlGenerator usado para gerar a FormTagHelpersaída do . |
Method |
O método HTTP a ser usado. |
Order |
Quando um conjunto de ITagHelpers é executado, os Init(TagHelperContext)seus são invocados pela primeira vez no especificado Order; em seguida, os ProcessAsync(TagHelperContext, TagHelperOutput)de são invocados no especificado Order. Valores maios baixos são executados primeiro. |
Page |
O nome da página. |
PageHandler |
O nome do manipulador de página. |
Route |
O nome da rota. |
RouteValues |
Parâmetros adicionais para a rota. |
ViewContext |
Obtém o ViewContext do modo de exibição em execução. |
Métodos
Init(TagHelperContext) |
Inicializa o ITagHelper com o fornecido |
Process(TagHelperContext, TagHelperOutput) |
Executa de forma síncrona o TagHelper com o fornecido |
ProcessAsync(TagHelperContext, TagHelperOutput) |
Executa de forma assíncrona o TagHelper com o fornecido |