次の方法で共有


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 />

適用対象