Compartilhar via


FormTagHelper Classe

Definição

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
FormTagHelper
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 context. As adições a Items devem ser feitas nesse método para garantir que elas sejam adicionadas antes da execução dos filhos.

(Herdado de TagHelper)
Process(TagHelperContext, TagHelperOutput)

Executa de forma síncrona o TagHelper com o fornecido context e output.

ProcessAsync(TagHelperContext, TagHelperOutput)

Executa de forma assíncrona o TagHelper com o fornecido context e output.

(Herdado de TagHelper)

Aplica-se a