HtmlTargetElementAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an ITagHelper's target.
public ref class HtmlTargetElementAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class HtmlTargetElementAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type HtmlTargetElementAttribute = class
inherit Attribute
Public NotInheritable Class HtmlTargetElementAttribute
Inherits Attribute
- Inheritance
-
HtmlTargetElementAttribute
- Attributes
Constructors
HtmlTargetElementAttribute() |
Instantiates a new instance of the HtmlTargetElementAttribute class that targets all HTML elements with the required Attributes. |
HtmlTargetElementAttribute(String) |
Instantiates a new instance of the HtmlTargetElementAttribute class with the given
|
Fields
ElementCatchAllTarget |
The value for a tag helper that targets all HTML elements. |
Properties
Attributes |
A comma-separated String of attribute selectors the HTML element must match for the
ITagHelper to run. |
ParentTag |
The required HTML element name of the direct parent. A |
Tag |
The HTML tag the ITagHelper targets. A |
TagStructure |
The expected tag structure. Defaults to Unspecified. |