HtmlTargetElementAttribute.TagStructure 속성

정의

예상되는 태그 구조체입니다. 기본값은 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

속성 값

설명

동일한 요소 TagStructure 에 적용하는 다른 태그 도우미가 없는 경우 Unspecified 동작이 NormalOrSelfClosing 사용됩니다.

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

그렇지 않으면 동일한 요소에 적용하는 다른 태그 도우미가 해당 동작을 지정하는 경우 해당 동작이 사용됩니다.

HTML 요소를 다음 형식으로 작성할 수 있는 경우 WithoutEndTag :

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

적용 대상