TagHelperDescriptor Class

A metadata class describing a tag helper.

Namespace
Microsoft.AspNetCore.Razor.Compilation.TagHelpers
Assemblies
  • Microsoft.AspNetCore.Razor

Syntax

public class TagHelperDescriptor
class Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor

Properties

Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.AllowedChildren

Get the names of elements allowed as children.

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> AllowedChildren { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.AssemblyName

The name of the assembly containing the tag helper class.

Return type:System.String
public string AssemblyName { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.Attributes

The list of attributes the tag helper expects.

Return type:System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperAttributeDescriptor>
public IEnumerable<TagHelperAttributeDescriptor> Attributes { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.DesignTimeDescriptor

The Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDesignTimeDescriptor that contains design time information about this tag helper.

Return type:Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDesignTimeDescriptor
public TagHelperDesignTimeDescriptor DesignTimeDescriptor { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.FullTagName

The full tag name that is required for the tag helper to target an HTML element.

Return type:System.String
public string FullTagName { get; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.Prefix

Text used as a required prefix when matching HTML start and end tags in the Razor source to available tag helpers.

Return type:System.String
public string Prefix { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.RequiredAttributes

The list of required attribute names the tag helper expects to target an element.

Return type:System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor>
public IEnumerable<TagHelperRequiredAttributeDescriptor> RequiredAttributes { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.RequiredParent

Get the name of the HTML element required as the immediate parent.

Return type:System.String
public string RequiredParent { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.TagName

The tag name that the tag helper should target.

Return type:System.String
public string TagName { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.TagStructure

The expected tag structure.

Return type:Microsoft.AspNetCore.Razor.TagHelpers.TagStructure
public TagStructure TagStructure { get; set; }
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor.TypeName

The full name of the tag helper class.

Return type:System.String
public string TypeName { get; set; }