RestrictChildrenAttribute Class

Definition

Restricts children of the ITagHelper's element.

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
Inheritance
RestrictChildrenAttribute
Attributes

Remarks

Combining this attribute with a HtmlTargetElementAttribute that specifies its TagStructure as WithoutEndTag will result in this attribute being ignored.

Constructors

RestrictChildrenAttribute(String, String[])

Instantiates a new instance of the RestrictChildrenAttribute class.

Properties

ChildTags

Get the names of elements allowed as children.

Applies to