HtmlTargetElementAttribute Klasa

Definicja

ITagHelperUdostępnia element docelowy .

public ref class HtmlTargetElementAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class HtmlTargetElementAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type HtmlTargetElementAttribute = class
    inherit Attribute
Public NotInheritable Class HtmlTargetElementAttribute
Inherits Attribute
Dziedziczenie
HtmlTargetElementAttribute
Atrybuty

Konstruktory

HtmlTargetElementAttribute()

Tworzy wystąpienie nowej klasy HtmlTargetElementAttribute , które jest przeznaczone dla wszystkich elementów HTML z wymaganym elementem Attributes.

HtmlTargetElementAttribute(String)

Tworzy wystąpienie nowej klasy HtmlTargetElementAttribute z daną tag wartością Tag .

Pola

ElementCatchAllTarget

Wartość pomocnika tagów, która jest przeznaczona dla wszystkich elementów HTML.

Właściwości

Attributes

Rozdzielane String przecinkami selektory atrybutów, które element HTML musi być zgodny z elementem ITagHelper do uruchomienia. * na końcu nazwy atrybutu działa jako dopasowanie prefiksu. Wartość otoczona nawiasami kwadratowymi jest obsługiwana jako selektor wartości atrybutu CSS. Operatory , i są obsługiwane, np. "name", "[name]", "[name=value]", "[ name ^= 'value' ]".=$=^=

ParentTag

Wymagana nazwa elementu HTML elementu nadrzędnego bezpośredniego. Wartość wskazuje, że dowolna null nazwa elementu HTML jest dozwolona.

Tag

Tag HTML elementów ITagHelper docelowych. Wartość * wskazuje, że ta ITagHelper wartość jest przeznaczona dla wszystkich elementów HTML z wymaganym elementem Attributes.

TagStructure

Oczekiwana struktura tagów. Wartość domyślna to Unspecified.

Dotyczy