TagHelperAttribute Class

Definition

An HTML tag helper attribute.

public ref class TagHelperAttribute : Microsoft::AspNetCore::Html::IHtmlContentContainer
public class TagHelperAttribute : Microsoft.AspNetCore.Html.IHtmlContentContainer
type TagHelperAttribute = class
    interface IHtmlContentContainer
    interface IHtmlContent
type TagHelperAttribute = class
    interface IHtmlContent
    interface IHtmlContentContainer
Public Class TagHelperAttribute
Implements IHtmlContentContainer
Inheritance
TagHelperAttribute
Implements

Constructors

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.

Properties

Name

Gets the name of the attribute.

Value

Gets the value of the attribute.

ValueStyle

Gets the value style of the attribute.

Methods

CopyTo(IHtmlContentBuilder)

Copies the contained content of this IHtmlContentContainer into builder.

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(TagHelperAttribute)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

MoveTo(IHtmlContentBuilder)

Moves the contained content of this IHtmlContentContainer into builder.

After MoveTo(IHtmlContentBuilder) is called, this IHtmlContentContainer instance should be left in an empty state.

WriteTo(TextWriter, HtmlEncoder)

Writes the content by encoding it with the specified encoder to the specified writer.

Applies to