HtmlTargetElementAttribute.TagStructure Property

Definition

The expected tag structure. Defaults to 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

Property Value

Remarks

If Unspecified and no other tag helpers applying to the same element specify their TagStructure the NormalOrSelfClosing behavior is used:

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

Otherwise, if another tag helper applying to the same element does specify their behavior, that behavior is used.

If WithoutEndTag HTML elements can be written in the following formats:

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

Applies to