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 указывающим его TagStructure как WithoutEndTag , приведет к тому, что этот атрибут будет игнорироваться.

Конструкторы

RestrictChildrenAttribute(String, String[])

Создает новый экземпляр класса RestrictChildrenAttribute.

Свойства

ChildTags

Получение имен элементов, разрешенных в качестве дочерних элементов.

Применяется к