HtmlAttributeNameAttribute Constructors
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.
Overloads
HtmlAttributeNameAttribute() |
Instantiates a new instance of the HtmlAttributeNameAttribute class with Name
equal to |
HtmlAttributeNameAttribute(String) |
Instantiates a new instance of the HtmlAttributeNameAttribute class. |
HtmlAttributeNameAttribute()
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)
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.