TagHelperAttribute Klasa

Definicja

Atrybut pomocnika tagów HTML.

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

Konstruktory

TagHelperAttribute(String)

Tworzy wystąpienie nowego wystąpienia przy TagHelperAttribute użyciu określonego nameelementu . ValueStyle jest ustawiona na Minimized i Value na null.

TagHelperAttribute(String, Object)

Tworzy wystąpienie nowego wystąpienia z TagHelperAttribute określonymi name elementami i value. ValueStyle jest ustawiona na DoubleQuoteswartość .

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Tworzy wystąpienie nowego wystąpienia z TagHelperAttribute określonym elementem i valuevalueStyle.name

Właściwości

Name

Pobiera nazwę atrybutu.

Value

Pobiera wartość atrybutu.

ValueStyle

Pobiera styl wartości atrybutu.

Metody

CopyTo(IHtmlContentBuilder)

Kopiuje zawartą zawartość tego IHtmlContentContainer elementu do builderelementu .

Equals(Object)

Atrybut pomocnika tagów HTML.

Equals(TagHelperAttribute)

Atrybut pomocnika tagów HTML.

GetHashCode()

Atrybut pomocnika tagów HTML.

MoveTo(IHtmlContentBuilder)

Przenosi zawartą zawartość tego IHtmlContentContainer elementu do builderelementu .

Po MoveTo(IHtmlContentBuilder) wywołaniu to IHtmlContentContainer wystąpienie powinno pozostać w stanie pustym.

WriteTo(TextWriter, HtmlEncoder)

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

Dotyczy