RestrictChildrenAttribute(String, String[]) Constructor

Definition

Instantiates a new instance of the RestrictChildrenAttribute class.

public:
 RestrictChildrenAttribute(System::String ^ childTag, ... cli::array <System::String ^> ^ childTags);
public RestrictChildrenAttribute (string childTag, params string[] childTags);
new Microsoft.AspNetCore.Razor.TagHelpers.RestrictChildrenAttribute : string * string[] -> Microsoft.AspNetCore.Razor.TagHelpers.RestrictChildrenAttribute
Public Sub New (childTag As String, ParamArray childTags As String())

Parameters

childTag
String

The tag name of an element allowed as a child.

childTags
String[]

Additional names of elements allowed as children.

Applies to