TagHelperOutputExtensions Class

Definition

Utility related extensions for TagHelperOutput.

public ref class TagHelperOutputExtensions abstract sealed
public static class TagHelperOutputExtensions
type TagHelperOutputExtensions = class
Public Module TagHelperOutputExtensions
Inheritance
TagHelperOutputExtensions

Methods

AddClass(TagHelperOutput, String, HtmlEncoder)

Adds the given classValue to the tagHelperOutput's Attributes.

CopyHtmlAttribute(TagHelperOutput, String, TagHelperContext)

Copies a user-provided attribute from context's AllAttributes to tagHelperOutput's Attributes.

MergeAttributes(TagHelperOutput, TagBuilder)

Merges the given tagBuilder's Attributes into the tagHelperOutput.

RemoveClass(TagHelperOutput, String, HtmlEncoder)

Removes the given classValue from the tagHelperOutput's Attributes.

RemoveRange(TagHelperOutput, IEnumerable<TagHelperAttribute>)

Removes the given attributes from tagHelperOutput's Attributes.

Applies to