共用方式為


TagHelperOutputExtensions.RemoveClass 方法

定義

tagHelperOutputAttributes 移除指定的 classValue

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)

參數

tagHelperOutput
TagHelperOutput

這個 TagHelperOutput 方法會擴充。

classValue
String

要移除的類別值。

htmlEncoder
HtmlEncoder

目前的 HTML 編碼器。

適用於