TagHelperOutput.Attributes Property
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.
The HTML element's attributes.
public:
property Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ Attributes { Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttributeList ^ get(); };
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for