HtmlTargetElementAttribute 類別

定義

ITagHelper提供 的目標。

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
繼承
HtmlTargetElementAttribute
屬性

建構函式

HtmlTargetElementAttribute()

具現化 類別的新實例,這個實例 HtmlTargetElementAttribute 會以所有具有必要 Attributes 的 HTML 專案為目標。

HtmlTargetElementAttribute(String)

使用指定的 tag 作為其 Tag 值, HtmlTargetElementAttribute 具現化 類別的新實例。

欄位

ElementCatchAllTarget

以所有 HTML 專案為目標的標籤協助程式值。

屬性

Attributes

以逗號分隔 String 的屬性選取器,HTML 元素必須符合才能 ITagHelper 執行。 * 在屬性名稱結尾做為前置詞比對。 以方括弧括住的值會當做 CSS 屬性值選取器來處理。 支援運算子 、 和 ,例如 "name""[name]" 、、 "[name=value]""[ name ^= 'value' ]"=$=^=

ParentTag

直接父代的必要 HTML 專案名稱。 值 null 表示允許任何 HTML 專案名稱。

Tag

目標的 HTML 標籤 ITagHelper 。 值 * 表示此 ITagHelper 值會以所有具有必要 Attributes 的 HTML 專案為目標。

TagStructure

預期的標記結構。 預設值為 Unspecified

適用於