HtmlTargetElementAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HtmlTargetElementAttribute() |
具現化 類別的新實例,這個實例 HtmlTargetElementAttribute 會以所有具有必要 Attributes 的 HTML 專案為目標。 |
HtmlTargetElementAttribute(String) |
使用指定的 |
HtmlTargetElementAttribute()
具現化 類別的新實例,這個實例 HtmlTargetElementAttribute 會以所有具有必要 Attributes 的 HTML 專案為目標。
public:
HtmlTargetElementAttribute();
public HtmlTargetElementAttribute ();
Public Sub New ()
備註
Tag 設定為 *
。
適用於
HtmlTargetElementAttribute(String)
使用指定的 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 專案為目標。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應