HtmlTargetElementAttribute 构造函数

定义

重载

HtmlTargetElementAttribute()

实例化 类的新实例, HtmlTargetElementAttribute 该实例面向具有所需 Attributes的所有 HTML 元素。

HtmlTargetElementAttribute(String)

使用给定 tagHtmlTargetElementAttribute 作为其Tag值实例化 类的新实例。

HtmlTargetElementAttribute()

Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs

实例化 类的新实例, HtmlTargetElementAttribute 该实例面向具有所需 Attributes的所有 HTML 元素。

public:
 HtmlTargetElementAttribute();
public HtmlTargetElementAttribute ();
Public Sub New ()

注解

Tag 设置为 *

适用于

HtmlTargetElementAttribute(String)

Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs

使用给定 tagHtmlTargetElementAttribute 作为其Tag值实例化 类的新实例。

public:
 HtmlTargetElementAttribute(System::String ^ tag);
public HtmlTargetElementAttribute (string tag);
new Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute : string -> Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute
Public Sub New (tag As String)

参数

tag
String

目标的 HTML 标记 ITagHelper

注解

*tag 指示此 ITagHelper 面向具有所需 Attributes的所有 HTML 元素。

适用于