TagHelperOutput.Attributes TagHelperOutput.Attributes TagHelperOutput.Attributes Property

Definition

The HTML element's attributes.

public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList Attributes { get; }
member this.Attributes : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttributeList
Public ReadOnly Property Attributes As TagHelperAttributeList

Property Value

Remarks

MVC will HTML encode String values when generating the start tag. It will not HTML encode a Microsoft.AspNetCore.Mvc.Rendering.HtmlString instance. MVC converts most other types to a String, then HTML encodes the result.

Applies to