HtmlTargetElementAttribute.TagStructure Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 />