AnchorTagHelper Klasa

Definicja

ITagHelper implementacja ukierunkowana <na> elementy.

public ref class AnchorTagHelper : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-action")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-controller")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-area")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-fragment")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-host")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-protocol")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-all-route-data")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route-*")]
public class AnchorTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-action")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-controller")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-area")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-fragment")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-host")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-protocol")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-all-route-data")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route-*")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-page")]
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-page-handler")]
public class AnchorTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-action")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-controller")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-area")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-fragment")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-host")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-protocol")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-all-route-data")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route-*")>]
type AnchorTagHelper = class
    inherit TagHelper
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-action")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-controller")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-area")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-fragment")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-host")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-protocol")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-all-route-data")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-route-*")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-page")>]
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElement("a", Attributes="asp-page-handler")>]
type AnchorTagHelper = class
    inherit TagHelper
Public Class AnchorTagHelper
Inherits TagHelper
Dziedziczenie
AnchorTagHelper
Atrybuty

Konstruktory

AnchorTagHelper(IHtmlGenerator)

Tworzy nowy adres AnchorTagHelper.

Właściwości

Action

Nazwa metody akcji.

Area

Nazwa obszaru.

Controller

Nazwa kontrolera.

Fragment

Nazwa fragmentu adresu URL.

Generator

Pobiera dane IHtmlGenerator użyte do wygenerowania danych wyjściowych AnchorTagHelper.

Host

Nazwa hosta.

Order

Po wykonaniu ITagHelperzestawu s ich ' Init(TagHelperContext)s są najpierw wywoływane w określonym Order; następnie ich ' ProcessAsync(TagHelperContext, TagHelperOutput)s są wywoływane w określonym Order. Najpierw są wykonywane niższe wartości.

Page

Nazwa strony.

PageHandler

Nazwa procedury obsługi stron.

Protocol

Protokół adresu URL, taki jak "http" lub "https".

Route

Nazwa trasy.

RouteValues

Dodatkowe parametry trasy.

ViewContext

Pobiera lub ustawia wartość ViewContext dla bieżącego żądania.

Metody

Init(TagHelperContext)

Inicjuje element ITagHelper przy użyciu podanego context. Dodatki należy wykonać Items w ramach tej metody, aby upewnić się, że zostały dodane przed wykonaniem elementów podrzędnych.

(Odziedziczone po TagHelper)
Process(TagHelperContext, TagHelperOutput)

Synchronicznie wykonuje element TagHelper z danym context elementem i output.

ProcessAsync(TagHelperContext, TagHelperOutput)

Asynchronicznie wykonuje element TagHelper z danym context elementem i output.

(Odziedziczone po TagHelper)

Dotyczy