TagHelperOutput.Attributes 属性

定义

HTML 元素的属性。

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

属性值

注解

生成开始标记时,MVC 将对值进行 HTML 编码 String 。 它不会对实例进行 Microsoft.AspNetCore.Mvc.Rendering.HtmlString HTML 编码。 MVC 将大多数其他类型的转换为 , String然后 HTML 对结果进行编码。

适用于