Condividi tramite


HtmlTargetElementAttribute.TagStructure Proprietà

Definizione

Struttura di tag prevista. Il valore predefinito è 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

Valore della proprietà

Commenti

Se Unspecified e nessun altro helper tag che si applica allo stesso elemento specifica il TagStructureNormalOrSelfClosing comportamento usato:

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

In caso contrario, se un altro helper tag che si applica allo stesso elemento specifica il comportamento, tale comportamento viene usato.

Se WithoutEndTag gli elementi HTML possono essere scritti nei formati seguenti:

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

Si applica a