Partilhar via


TagHelperExecutionContext.AddHtmlAttribute Método

Definição

Sobrecargas

AddHtmlAttribute(TagHelperAttribute)

Rastreia o atributo HTML.

AddHtmlAttribute(String, Object, HtmlAttributeValueStyle)

Rastreia o atributo HTML.

AddHtmlAttribute(TagHelperAttribute)

Origem:
TagHelperExecutionContext.cs
Origem:
TagHelperExecutionContext.cs
Origem:
TagHelperExecutionContext.cs

Rastreia o atributo HTML.

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)

Parâmetros

attribute
TagHelperAttribute

O TagHelperAttribute a ser rastreado.

Aplica-se a

AddHtmlAttribute(String, Object, HtmlAttributeValueStyle)

Origem:
TagHelperExecutionContext.cs
Origem:
TagHelperExecutionContext.cs
Origem:
TagHelperExecutionContext.cs

Rastreia o atributo HTML.

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)

Parâmetros

name
String

O nome do atributo HTML.

value
Object

O valor do atributo HTML.

valueStyle
HtmlAttributeValueStyle

O estilo de valor do atributo.

Aplica-se a