共用方式為


TagHelperAttribute 類別

定義

HTML 標籤協助程式屬性。

public ref class TagHelperAttribute : Microsoft::AspNetCore::Html::IHtmlContentContainer
public class TagHelperAttribute : Microsoft.AspNetCore.Html.IHtmlContentContainer
type TagHelperAttribute = class
    interface IHtmlContentContainer
    interface IHtmlContent
type TagHelperAttribute = class
    interface IHtmlContent
    interface IHtmlContentContainer
Public Class TagHelperAttribute
Implements IHtmlContentContainer
繼承
TagHelperAttribute
實作

建構函式

TagHelperAttribute(String)

使用指定的 name 具現化 的新 TagHelperAttribute 實例。 ValueStyle 設定為 Minimized ,並將 Value 設定為 null

TagHelperAttribute(String, Object)

使用指定的 namevalue 具現化 的新實例 TagHelperAttributeValueStyle 設定為 DoubleQuotes

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

使用指定的 namevaluevalueStyle 具現化 的新實例 TagHelperAttribute

屬性

Name

取得此屬性的名稱。

Value

取得屬性值。

ValueStyle

取得屬性的值樣式。

方法

CopyTo(IHtmlContentBuilder)

將這個 IHtmlContentContainerbuilder 包含的內容複寫到 。

Equals(Object)

HTML 標籤協助程式屬性。

Equals(TagHelperAttribute)

HTML 標籤協助程式屬性。

GetHashCode()

HTML 標籤協助程式屬性。

MoveTo(IHtmlContentBuilder)

將這個 IHtmlContentContainerbuilder 的內含內容移至 。

呼叫 之後 MoveTo(IHtmlContentBuilder) ,此 IHtmlContentContainer 實例應該會保持空白狀態。

WriteTo(TextWriter, HtmlEncoder)

使用指定的 來撰寫內容,方法是將它編碼為指定的 encoderwriter

適用於