HtmlTargetElementAttribute.TagStructure Propiedad

Definición

Estructura de etiquetas esperada. Tiene como valor predeterminado Unspecified.

public:
 property Microsoft::AspNetCore::Razor::TagHelpers::TagStructure TagStructure { Microsoft::AspNetCore::Razor::TagHelpers::TagStructure get(); void set(Microsoft::AspNetCore::Razor::TagHelpers::TagStructure value); };
public Microsoft.AspNetCore.Razor.TagHelpers.TagStructure TagStructure { get; set; }
member this.TagStructure : Microsoft.AspNetCore.Razor.TagHelpers.TagStructure with get, set
Public Property TagStructure As TagStructure

Valor de propiedad

TagStructure

Comentarios

Si Unspecified y ningún otro asistente de etiquetas que se aplica al mismo elemento, especifique su TagStructure NormalOrSelfClosing comportamiento:

<my-tag-helper></my-tag-helper>
<!-- OR -->
<my-tag-helper />

De lo contrario, si otro asistente de etiquetas que se aplica al mismo elemento especifica su comportamiento, se usa ese comportamiento.

Si WithoutEndTag los elementos HTML se pueden escribir en los siguientes formatos:

<my-tag-helper>
<!-- OR -->
<my-tag-helper />

Se aplica a