RestrictChildrenAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
限制 的 元素的 ITagHelper子级。
public ref class RestrictChildrenAttribute : Attribute
public ref class RestrictChildrenAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public class RestrictChildrenAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class RestrictChildrenAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type RestrictChildrenAttribute = class
inherit Attribute
Public Class RestrictChildrenAttribute
Inherits Attribute
Public NotInheritable Class RestrictChildrenAttribute
Inherits Attribute
- 继承
-
RestrictChildrenAttribute
- 属性
注解
将此属性与 HtmlTargetElementAttribute 指定其 TagStructure 为 WithoutEndTag 的 组合将导致忽略此属性。
构造函数
RestrictChildrenAttribute(String, String[]) |
实例化 RestrictChildrenAttribute 类的新实例。 |
属性
ChildTags |
获取允许作为子元素的元素的名称。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈