TagHelperAttribute Constructores

Definición

Sobrecargas

TagHelperAttribute(String)

Crea una instancia de TagHelperAttribute con el especificado name. ValueStyle se establece en Minimized y Value en NULL.

TagHelperAttribute(String, Object)

Crea una instancia de TagHelperAttribute con el especificado name y value. El valor de ValueStyle está establecido en DoubleQuotes.

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Crea una instancia de TagHelperAttribute con el namevalue especificado y valueStyle.

TagHelperAttribute(String)

Crea una instancia de TagHelperAttribute con el especificado name. ValueStyle se establece en Minimized y Value en 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

Name del atributo.

Se aplica a

TagHelperAttribute(String, Object)

Crea una instancia de TagHelperAttribute con el especificado name y value. El valor de ValueStyle está establecido en 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

Name del atributo.

value
Object

Value del atributo.

Se aplica a

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Crea una instancia de TagHelperAttribute con el namevalue especificado y valueStyle.

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

de Name la nueva instancia.

value
Object

de Value la nueva instancia.

valueStyle
HtmlAttributeValueStyle

de ValueStyle la nueva instancia.

Comentarios

Si valueStyle es Minimized, value se omite cuando se representa esta instancia.

Se aplica a