Share via


TagHelperAttribute Constructors

Definition

Overloads

TagHelperAttribute(String)

Instantiates a new instance of TagHelperAttribute with the specified name. ValueStyle is set to Minimized and Value to null.

TagHelperAttribute(String, Object)

Instantiates a new instance of TagHelperAttribute with the specified name and value. ValueStyle is set to DoubleQuotes.

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

Instantiates a new instance of TagHelperAttribute with the specified name, value and valueStyle.

TagHelperAttribute(String)

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

name
String

The Name of the attribute.

Applies to

TagHelperAttribute(String, Object)

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

name
String

The Name of the attribute.

value
Object

The Value of the attribute.

Applies to

TagHelperAttribute(String, Object, HtmlAttributeValueStyle)

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

name
String

The Name of the new instance.

value
Object

The Value of the new instance.

valueStyle
HtmlAttributeValueStyle

The ValueStyle of the new instance.

Remarks

If valueStyle is Minimized, value is ignored when this instance is rendered.

Applies to