TagHelperOutputExtensions.AddClass Method
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.
Adds the given classValue
to the tagHelperOutput
's
Attributes.
public:
[System::Runtime::CompilerServices::Extension]
static void AddClass(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperOutput ^ tagHelperOutput, System::String ^ classValue, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder);
public static void AddClass (this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder);
static member AddClass : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput * string * System.Text.Encodings.Web.HtmlEncoder -> unit
<Extension()>
Public Sub AddClass (tagHelperOutput As TagHelperOutput, classValue As String, htmlEncoder As HtmlEncoder)
Parameters
- tagHelperOutput
- TagHelperOutput
The TagHelperOutput this method extends.
- classValue
- String
The class value to add.
- htmlEncoder
- HtmlEncoder
The current HTML encoder.