HtmlAttributeNameAttribute Class

Definition

Used to override an ITagHelper property's HTML attribute name.

public ref class HtmlAttributeNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class HtmlAttributeNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type HtmlAttributeNameAttribute = class
    inherit Attribute
Public NotInheritable Class HtmlAttributeNameAttribute
Inherits Attribute
Inheritance
HtmlAttributeNameAttribute
Attributes

Constructors

HtmlAttributeNameAttribute()

Instantiates a new instance of the HtmlAttributeNameAttribute class with Name equal to null.

HtmlAttributeNameAttribute(String)

Instantiates a new instance of the HtmlAttributeNameAttribute class.

Properties

DictionaryAttributePrefix

Gets or sets the prefix used to match HTML attribute names. Matching attributes are added to the associated property (an IDictionary<TKey,TValue>).

DictionaryAttributePrefixSet

Gets an indication whether DictionaryAttributePrefix has been set. Used to distinguish an uninitialized DictionaryAttributePrefix value from an explicit null setting.

Name

HTML attribute name of the associated property.

Applies to