TagHelperContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TagHelperContext(TagHelperAttributeList, IDictionary<Object,Object>, String)
- Source:
- TagHelperContext.cs
- Source:
- TagHelperContext.cs
实例化一个新的 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)
- Source:
- TagHelperContext.cs
- Source:
- TagHelperContext.cs
实例化一个新的 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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈