HtmlTargetElementAttribute Třída

Definice

ITagHelperPoskytuje cíl.

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
Dědičnost
HtmlTargetElementAttribute
Atributy

Konstruktory

HtmlTargetElementAttribute()

Vytvoří instanci nové instance HtmlTargetElementAttribute třídy, která cílí na všechny elementy HTML s požadovanou Attributes.

HtmlTargetElementAttribute(String)

Vytvoří instanci nové instance HtmlTargetElementAttribute třídy s danou tag Tag hodnotou.

Pole

ElementCatchAllTarget

Hodnota pomocné rutiny značky, která cílí na všechny prvky HTML.

Vlastnosti

Attributes

Selektory atributů oddělené String čárkami musí odpovídat elementu HTML pro ITagHelper spuštění. * na konci názvu atributu funguje jako shoda předpony. Hodnota obklopená hranatými závorkami se zpracovává jako selektor hodnot atributů CSS. Operátory ^=a = $= podporují se například "name", "[name]", "[name=value]", "[ name ^= 'value' ]".

ParentTag

Požadovaný název elementu HTML přímého nadřazeného objektu. Hodnota null označuje, že je povolen jakýkoli název elementu HTML.

Tag

Kód HTML označí ITagHelper cíle. Hodnota * označuje, že cílí na ITagHelper všechny elementy HTML s požadovanou Attributes.

TagStructure

Očekávaná struktura značek Výchozí hodnota je Unspecified.

Platí pro