Share via


TagHelperContext 類別

定義

包含與 執行 ITagHelper 相關的資訊。

public ref class TagHelperContext
public class TagHelperContext
type TagHelperContext = class
Public Class TagHelperContext
繼承
TagHelperContext

建構函式

TagHelperContext(String, TagHelperAttributeList, IDictionary<Object,Object>, String)

將新的 TagHelperContext 具現化。

TagHelperContext(TagHelperAttributeList, IDictionary<Object,Object>, String)

將新的 TagHelperContext 具現化。

屬性

AllAttributes

與目前 HTML 專案相關聯的每個屬性。

Items

取得用來與其他 ITagHelper s 通訊的專案集合。

TagName

已剖析的 HTML 標籤名稱。

UniqueId

此內容所針對之 HTML 元素的唯一識別碼。

方法

Reinitialize(IDictionary<Object,Object>, String)

清除 , TagHelperContext 並使用提供的值更新其狀態。

Reinitialize(String, IDictionary<Object,Object>, String)

清除 , TagHelperContext 並使用提供的值更新其狀態。

適用於