Compartilhar via


TagHelperAttribute Construtores

Definição

Sobrecargas

TagHelperAttribute(String)

Cria uma instância de TagHelperAttribute com o especificado name. ValueStyle é definido como Minimized e Value como null.

TagHelperAttribute(String, Object)

Instancia uma nova instância de TagHelperAttribute com o especificado name e value. ValueStyle é definido como DoubleQuotes.

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Instancia uma nova instância de TagHelperAttribute com o especificado namee valuevalueStyle.

TagHelperAttribute(String)

Origem:
TagHelperAttribute.cs
Origem:
TagHelperAttribute.cs

Cria uma instância de TagHelperAttribute com o especificado name. ValueStyle é definido como Minimized e Value como null.

public:
 TagHelperAttribute(System::String ^ name);
public TagHelperAttribute (string name);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String)

Parâmetros

name
String

O Name do atributo.

Aplica-se a

TagHelperAttribute(String, Object)

Origem:
TagHelperAttribute.cs
Origem:
TagHelperAttribute.cs

Instancia uma nova instância de TagHelperAttribute com o especificado name e value. ValueStyle é definido como DoubleQuotes.

public:
 TagHelperAttribute(System::String ^ name, System::Object ^ value);
public TagHelperAttribute (string name, object value);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string * obj -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String, value As Object)

Parâmetros

name
String

O Name do atributo.

value
Object

O Value do atributo.

Aplica-se a

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Origem:
TagHelperAttribute.cs
Origem:
TagHelperAttribute.cs

Instancia uma nova instância de TagHelperAttribute com o especificado namee valuevalueStyle.

public:
 TagHelperAttribute(System::String ^ name, System::Object ^ value, Microsoft::AspNetCore::Razor::TagHelpers::HtmlAttributeValueStyle valueStyle);
public TagHelperAttribute (string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string * obj * Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String, value As Object, valueStyle As HtmlAttributeValueStyle)

Parâmetros

name
String

O Name da nova instância.

value
Object

O Value da nova instância.

valueStyle
HtmlAttributeValueStyle

O ValueStyle da nova instância.

Comentários

Se valueStyle for Minimized, value será ignorado quando essa instância for renderizada.

Aplica-se a