Partager via


HtmlTargetElementAttribute.TagStructure Propriété

Définition

Structure de balise attendue. La valeur par défaut est 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

Valeur de propriété

Remarques

Si Unspecified et aucun autre tag helpers s’appliquant au même élément spécifient leur TagStructureNormalOrSelfClosing comportement est utilisé :

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

Sinon, si un autre tag helper s’appliquant au même élément spécifie son comportement, ce comportement est utilisé.

Si WithoutEndTag les éléments HTML peuvent être écrits dans les formats suivants :

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

S’applique à