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()

必要Attributesな を持つすべての HTML 要素をHtmlTargetElementAttribute対象とする クラスの新しいインスタンスをインスタンス化します。

HtmlTargetElementAttribute(String)

指定tagされた を値として使用して、 HtmlTargetElementAttribute クラスの新しいインスタンスをTagインスタンス化します。

フィールド

ElementCatchAllTarget

すべての HTML 要素を対象とするタグ ヘルパーの値。

プロパティ

Attributes

HTML 要素が を実行するために一致する必要がある属性セレクターのITagHelperコンマ区切Stringり。 * 属性名の末尾は、プレフィックスの一致として機能します。 角かっこで囲まれた値は、CSS 属性値セレクターとして処理されます。 演算子^=$=および = は、 など、サポートされています。 "name""[name]""[name=value]""[ name ^= 'value' ]"

ParentTag

直接親の必要な HTML 要素名。 値は null 、HTML 要素名が許可されていることを示します。

Tag

ターゲットの ITagHelper HTML タグ。 値は * 、これが ITagHelper 必要な Attributesを持つすべての HTML 要素を対象としたことを示します。

TagStructure

予期されるタグ構造。 既定値は Unspecified です。

適用対象