HtmlTargetElementAttribute Constructors

Definition

Overloads

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 tag as its Tag value.

HtmlTargetElementAttribute()

Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs

Instantiates a new instance of the HtmlTargetElementAttribute class that targets all HTML elements with the required Attributes.

public:
 HtmlTargetElementAttribute();
public HtmlTargetElementAttribute ();
Public Sub New ()

Remarks

Tag is set to *.

Applies to

HtmlTargetElementAttribute(String)

Source:
HtmlTargetElementAttribute.cs
Source:
HtmlTargetElementAttribute.cs

Instantiates a new instance of the HtmlTargetElementAttribute class with the given tag as its Tag value.

public:
 HtmlTargetElementAttribute(System::String ^ tag);
public HtmlTargetElementAttribute (string tag);
new Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute : string -> Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute
Public Sub New (tag As String)

Parameters

tag
String

The HTML tag the ITagHelper targets.

Remarks

A *tag value indicates this ITagHelper targets all HTML elements with the required Attributes.

Applies to