TagHelperExecutionContext.AddHtmlAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddHtmlAttribute(TagHelperAttribute) |
Tracks the HTML attribute. |
AddHtmlAttribute(String, Object, HtmlAttributeValueStyle) |
Tracks the HTML attribute. |
AddHtmlAttribute(TagHelperAttribute)
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
Tracks the HTML attribute.
public:
void AddHtmlAttribute(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^ attribute);
public void AddHtmlAttribute (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute);
member this.AddHtmlAttribute : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute -> unit
Public Sub AddHtmlAttribute (attribute As TagHelperAttribute)
Parameters
- attribute
- TagHelperAttribute
The TagHelperAttribute to track.
Applies to
AddHtmlAttribute(String, Object, HtmlAttributeValueStyle)
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
Tracks the HTML attribute.
public:
void AddHtmlAttribute(System::String ^ name, System::Object ^ value, Microsoft::AspNetCore::Razor::TagHelpers::HtmlAttributeValueStyle valueStyle);
public void AddHtmlAttribute (string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle);
member this.AddHtmlAttribute : string * obj * Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle -> unit
Public Sub AddHtmlAttribute (name As String, value As Object, valueStyle As HtmlAttributeValueStyle)
Parameters
- name
- String
The HTML attribute name.
- value
- Object
The HTML attribute value.
- valueStyle
- HtmlAttributeValueStyle
The value style of the attribute.