TagHelperAttribute 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
TagHelperAttribute(String) |
Instantiates a new instance of TagHelperAttribute with the specified |
TagHelperAttribute(String, Object) |
Instantiates a new instance of TagHelperAttribute with the specified |
TagHelperAttribute(String, Object, HtmlAttributeValueStyle) |
Instantiates a new instance of TagHelperAttribute with the specified |
TagHelperAttribute(String)
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
Instantiates a new instance of TagHelperAttribute with the specified name
.
ValueStyle is set to Minimized and Value to
null
.
public:
TagHelperAttribute(System::String ^ name);
public TagHelperAttribute (string name);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String)
Parameters
Applies to
TagHelperAttribute(String, Object)
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
Instantiates a new instance of TagHelperAttribute with the specified name
and value
. ValueStyle is set to DoubleQuotes.
public:
TagHelperAttribute(System::String ^ name, System::Object ^ value);
public TagHelperAttribute (string name, object value);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string * obj -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String, value As Object)
Parameters
Applies to
TagHelperAttribute(String, Object, HtmlAttributeValueStyle)
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
- Source:
- TagHelperAttribute.cs
Instantiates a new instance of TagHelperAttribute with the specified name
,
value
and valueStyle
.
public:
TagHelperAttribute(System::String ^ name, System::Object ^ value, Microsoft::AspNetCore::Razor::TagHelpers::HtmlAttributeValueStyle valueStyle);
public TagHelperAttribute (string name, object value, Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle valueStyle);
new Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute : string * obj * Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute
Public Sub New (name As String, value As Object, valueStyle As HtmlAttributeValueStyle)
Parameters
- valueStyle
- HtmlAttributeValueStyle
The ValueStyle of the new instance.
Remarks
If valueStyle
is Minimized, value
is ignored when this instance is rendered.