TagHelperExecutionContext.AddTagHelperAttribute Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddTagHelperAttribute(TagHelperAttribute) |
Rastreia o ITagHelper atributo associado. |
AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle) |
Rastreia o ITagHelper atributo associado. |
AddTagHelperAttribute(TagHelperAttribute)
- Origem:
- TagHelperExecutionContext.cs
- Origem:
- TagHelperExecutionContext.cs
- Origem:
- TagHelperExecutionContext.cs
Rastreia o ITagHelper atributo associado.
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)
Parâmetros
- attribute
- TagHelperAttribute
O atributo associado.
Aplica-se a
AddTagHelperAttribute(String, Object, HtmlAttributeValueStyle)
- Origem:
- TagHelperExecutionContext.cs
- Origem:
- TagHelperExecutionContext.cs
- Origem:
- TagHelperExecutionContext.cs
Rastreia o ITagHelper atributo associado.
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)
Parâmetros
- name
- String
O nome do atributo associado.
- value
- Object
O valor do atributo.
- valueStyle
- HtmlAttributeValueStyle
O estilo de valor do atributo.
Aplica-se a
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de