HttpServerUtilityBase.HtmlDecode 方法

定義

在衍生類別中覆寫時,將 HTML 編碼字串解碼。

多載

HtmlDecode(String)

在衍生類別中覆寫時,將經過 HTML 編碼的字串進行解碼,並傳回解碼的字串。

HtmlDecode(String, TextWriter)

在衍生類別中覆寫時,將經過 HTML 編碼的字串進行解碼,並以資料流形式傳回結果。

HtmlDecode(String)

在衍生類別中覆寫時,將經過 HTML 編碼的字串進行解碼,並傳回解碼的字串。

public:
 virtual System::String ^ HtmlDecode(System::String ^ s);
public virtual string HtmlDecode (string s);
abstract member HtmlDecode : string -> string
override this.HtmlDecode : string -> string
Public Overridable Function HtmlDecode (s As String) As String

參數

s
String

要解碼的 HTML 字串。

傳回

解碼的文字。

例外狀況

適用於

HtmlDecode(String, TextWriter)

在衍生類別中覆寫時,將經過 HTML 編碼的字串進行解碼,並以資料流形式傳回結果。

public:
 virtual void HtmlDecode(System::String ^ s, System::IO::TextWriter ^ output);
public virtual void HtmlDecode (string s, System.IO.TextWriter output);
abstract member HtmlDecode : string * System.IO.TextWriter -> unit
override this.HtmlDecode : string * System.IO.TextWriter -> unit
Public Overridable Sub HtmlDecode (s As String, output As TextWriter)

參數

s
String

要解碼的 HTML 字串。

output
TextWriter

包含解碼字串的資料流。

例外狀況

備註

參數 output 會以傳址方式傳遞至 HtmlDecode 方法。 若要在方法完成之後從處理常式擷取輸出,您可以使用 物件的屬性和方法 output 。 如需範例,請參閱 HtmlDecode

適用於