次の方法で共有


TagHelperDescriptor.TagStructure プロパティ

定義

予期されるタグ構造。

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

適用対象