Freigeben über


TagHelperOutputExtensions.AddClass Methode

Definition

Fügt die angegebene classValue dem -Der AttributeshinzutagHelperOutput.

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)

Parameter

tagHelperOutput
TagHelperOutput

Diese TagHelperOutput Methode wird erweitert.

classValue
String

Der hinzuzufügende Klassenwert.

htmlEncoder
HtmlEncoder

Der aktuelle HTML-Encoder.

Gilt für: