TagHelperExecutionContext.AddTagHelperAttribute Method

Definition

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