Bagikan melalui


TagHelperOutputExtensions.RemoveClass Metode

Definisi

Menghapus yang diberikan classValue dari tagHelperOutputAttributes.

public:
[System::Runtime::CompilerServices::Extension]
 static void RemoveClass(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperOutput ^ tagHelperOutput, System::String ^ classValue, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder);
public static void RemoveClass (this Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput tagHelperOutput, string classValue, System.Text.Encodings.Web.HtmlEncoder htmlEncoder);
static member RemoveClass : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput * string * System.Text.Encodings.Web.HtmlEncoder -> unit
<Extension()>
Public Sub RemoveClass (tagHelperOutput As TagHelperOutput, classValue As String, htmlEncoder As HtmlEncoder)

Parameter

tagHelperOutput
TagHelperOutput

Metode TagHelperOutput ini diperluas.

classValue
String

Nilai kelas yang akan dihapus.

htmlEncoder
HtmlEncoder

Encoder HTML saat ini.

Berlaku untuk