RestrictChildrenAttribute Třída

Definice

Omezuje podřízené položky elementu.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
Dědičnost
RestrictChildrenAttribute
Atributy

Poznámky

Kombinace tohoto atributu s atributem HtmlTargetElementAttribute , který určuje jeho TagStructure výsledek WithoutEndTag v důsledku ignorování tohoto atributu.

Konstruktory

RestrictChildrenAttribute(String, String[])

Vytvoří instanci nové instance RestrictChildrenAttribute třídy.

Vlastnosti

ChildTags

Získejte názvy prvků povolených jako podřízené položky.

Platí pro