TagHelperContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TagHelperContext(TagHelperAttributeList, IDictionary<Object,Object>, String)
將新的 TagHelperContext 具現化。
public:
TagHelperContext(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ allAttributes, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ items, System::String ^ uniqueId);
public TagHelperContext (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList allAttributes, System.Collections.Generic.IDictionary<object,object> items, string uniqueId);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList * System.Collections.Generic.IDictionary<obj, obj> * string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext
Public Sub New (allAttributes As TagHelperAttributeList, items As IDictionary(Of Object, Object), uniqueId As String)
參數
- allAttributes
- TagHelperAttributeList
與目前 HTML 專案相關聯的每個屬性。
- items
- IDictionary<Object,Object>
用來與其他 ITagHelper 專案通訊的專案集合。
- uniqueId
- String
套 TagHelperContext 用至之來源專案的唯一識別碼。
適用於
TagHelperContext(String, TagHelperAttributeList, IDictionary<Object,Object>, String)
將新的 TagHelperContext 具現化。
public:
TagHelperContext(System::String ^ tagName, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ allAttributes, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ items, System::String ^ uniqueId);
public TagHelperContext (string tagName, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList allAttributes, System.Collections.Generic.IDictionary<object,object> items, string uniqueId);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext : string * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList * System.Collections.Generic.IDictionary<obj, obj> * string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext
Public Sub New (tagName As String, allAttributes As TagHelperAttributeList, items As IDictionary(Of Object, Object), uniqueId As String)
參數
- tagName
- String
已剖析的 HTML 標籤名稱。
- allAttributes
- TagHelperAttributeList
與目前 HTML 專案相關聯的每個屬性。
- items
- IDictionary<Object,Object>
用來與其他 ITagHelper 專案通訊的專案集合。
- uniqueId
- String
套 TagHelperContext 用至之來源專案的唯一識別碼。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應