TagHelperOutputExtensions.AddClass Méthode

Définition

Ajoute le donné classValue au tagHelperOutputAttributes.

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)

Paramètres

tagHelperOutput
TagHelperOutput

Cette TagHelperOutput méthode s’étend.

classValue
String

Valeur de classe à ajouter.

htmlEncoder
HtmlEncoder

Encodeur HTML actuel.

S’applique à