共用方式為


HtmlTargetElementAttribute 建構函式

定義

多載

HtmlTargetElementAttribute()

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

HtmlTargetElementAttribute(String)

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

HtmlTargetElementAttribute()

來源:
HtmlTargetElementAttribute.cs
來源:
HtmlTargetElementAttribute.cs
來源:
HtmlTargetElementAttribute.cs

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

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

備註

Tag 設定為 *

適用於

HtmlTargetElementAttribute(String)

來源:
HtmlTargetElementAttribute.cs
來源:
HtmlTargetElementAttribute.cs
來源:
HtmlTargetElementAttribute.cs

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

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 專案為目標。

適用於