TagHelperOutput Klasa

Definicja

Klasa używana do reprezentowania danych wyjściowych elementu ITagHelper.

public ref class TagHelperOutput : Microsoft::AspNetCore::Html::IHtmlContentContainer
public class TagHelperOutput : Microsoft.AspNetCore.Html.IHtmlContentContainer
type TagHelperOutput = class
    interface IHtmlContentContainer
    interface IHtmlContent
type TagHelperOutput = class
    interface IHtmlContent
    interface IHtmlContentContainer
Public Class TagHelperOutput
Implements IHtmlContentContainer
Dziedziczenie
TagHelperOutput
Implementuje

Konstruktory

TagHelperOutput(String, TagHelperAttributeList, Func<Boolean,HtmlEncoder,Task<TagHelperContent>>)

Tworzy wystąpienie nowego wystąpienia klasy TagHelperOutput.

Właściwości

Attributes

Atrybuty elementu HTML.

Content

Pobierz lub ustaw główną zawartość elementu HTML.

IsContentModified

true jeśli Content został ustawiony, false w przeciwnym razie.

PostContent

Zawartość wpisu elementu HTML.

PostElement

Zawartość zgodna z elementem HTML.

PreContent

Zawartość wstępna elementu HTML.

PreElement

Zawartość poprzedzająca element HTML.

TagMode

Składnia elementu w wygenerowanych kodzie HTML.

TagName

Nazwa tagu elementu HTML.

Metody

GetChildContentAsync()

Wykonuje elementy podrzędne asynchronicznie i zwraca ich renderowaną zawartość.

GetChildContentAsync(Boolean)

Wykonuje elementy podrzędne asynchronicznie i zwraca ich renderowaną zawartość.

GetChildContentAsync(Boolean, HtmlEncoder)

Wykonuje elementy podrzędne asynchronicznie z danym encoder elementem w zakresie i zwraca ich renderowaną zawartość.

GetChildContentAsync(HtmlEncoder)

Wykonuje elementy podrzędne asynchronicznie z danym encoder elementem w zakresie i zwraca ich renderowaną zawartość.

Reinitialize(String, TagMode)

Czyści i TagHelperOutput aktualizuje stan przy użyciu podanych wartości.

SuppressOutput()

Zmiany TagHelperOutput w celu wygenerowania niczego.

WriteTo(TextWriter, HtmlEncoder)

Zapisuje zawartość, kodując ją przy użyciu określonego encoder elementu do określonego writerelementu .

Jawne implementacje interfejsu

IHtmlContentContainer.CopyTo(IHtmlContentBuilder)

Klasa używana do reprezentowania danych wyjściowych elementu ITagHelper.

IHtmlContentContainer.MoveTo(IHtmlContentBuilder)

Klasa używana do reprezentowania danych wyjściowych elementu ITagHelper.

Metody rozszerzania

AddClass(TagHelperOutput, String, HtmlEncoder)

Dodaje daną classValue wartość do elementu tagHelperOutput.Attributes

CopyHtmlAttribute(TagHelperOutput, String, TagHelperContext)

Kopiuje atrybut dostarczony przez użytkownika z context's AllAttributes do tagHelperOutput' .Attributes

MergeAttributes(TagHelperOutput, TagBuilder)

Scala dane tagBuilder's Attributes z elementem tagHelperOutput.

RemoveClass(TagHelperOutput, String, HtmlEncoder)

Usuwa daną classValue wartość z elementu tagHelperOutputAttributes.

RemoveRange(TagHelperOutput, IEnumerable<TagHelperAttribute>)

Usuwa daną attributes wartość z tagHelperOutput's Attributes.

Dotyczy