TagHelperExecutionContext.AddTagHelperAttribute 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
AddTagHelperAttribute(TagHelperAttribute) |
Tracks the ITagHelper bound attribute. |
AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle) |
Tracks the ITagHelper bound attribute. |
AddTagHelperAttribute(TagHelperAttribute)
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
Tracks the ITagHelper bound attribute.
public:
void AddTagHelperAttribute(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^ attribute);
public void AddTagHelperAttribute (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute);
member this.AddTagHelperAttribute : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute -> unit
Public Sub AddTagHelperAttribute (attribute As TagHelperAttribute)
Parameters
- attribute
- TagHelperAttribute
The bound attribute.
Applies to
AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle)
- Source:
- TagHelperExecutionContext.cs
- Source:
- TagHelperExecutionContext.cs
Tracks the ITagHelper bound attribute.
public:
void AddTagHelperAttribute(System::String ^ name, System::Object ^ value, Microsoft::AspNetCore::Razor::TagHelpers::HtmlAttributeValueStyle valueStyle);
public void AddTagHelperAttribute (string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle);
member this.AddTagHelperAttribute : string * obj * Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle -> unit
Public Sub AddTagHelperAttribute (name As String, value As Object, valueStyle As HtmlAttributeValueStyle)
Parameters
- name
- String
The bound attribute name.
- value
- Object
The attribute value.
- valueStyle
- HtmlAttributeValueStyle
The value style of the attribute.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for