RestrictChildrenAttribute 类

定义

限制 的 元素的 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 指定其 TagStructureWithoutEndTag 的 组合将导致忽略此属性。

构造函数

RestrictChildrenAttribute(String, String[])

实例化 RestrictChildrenAttribute 类的新实例。

属性

ChildTags

获取允许作为子元素的元素的名称。

适用于