HtmlAttributeNameAttribute Constructors

Definition

Overloads

HtmlAttributeNameAttribute()

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

HtmlAttributeNameAttribute(String)

Instantiates a new instance of the HtmlAttributeNameAttribute class.

HtmlAttributeNameAttribute()

Source:
HtmlAttributeNameAttribute.cs
Source:
HtmlAttributeNameAttribute.cs

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

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

Remarks

Associated property must not have a public setter and must be compatible with IDictionary<TKey,TValue> where TKey is String.

Applies to

HtmlAttributeNameAttribute(String)

Source:
HtmlAttributeNameAttribute.cs
Source:
HtmlAttributeNameAttribute.cs

Instantiates a new instance of the HtmlAttributeNameAttribute class.

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

Parameters

name
String

HTML attribute name for the associated property. Must be null or empty if associated property does not have a public setter and is compatible with IDictionary<TKey,TValue> where TKey is String. Otherwise must not be null or empty.

Applies to