RestrictChildrenAttribute Třída

Definice

Omezí 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

Zkombinování tohoto atributu s atributem HtmlTargetElementAttribute , který určuje jeho TagStructure jako WithoutEndTag , bude mít za následek ignorování tohoto atributu.

Konstruktory

RestrictChildrenAttribute(String, String[])

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

Vlastnosti

ChildTags

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

Platí pro