HttpServerUtilityWrapper.HtmlDecode 方法

定義

將 HTML 編碼字串解碼。

多載

HtmlDecode(String)

將 HTML 編碼字串解碼,並傳回解碼的字串。

HtmlDecode(String, TextWriter)

將 HTML 編碼字串解碼,並在資料流中傳回結果。

HtmlDecode(String)

將 HTML 編碼字串解碼,並傳回解碼的字串。

public:
 override System::String ^ HtmlDecode(System::String ^ s);
public override string HtmlDecode (string s);
override this.HtmlDecode : string -> string
Public Overrides Function HtmlDecode (s As String) As String

參數

s
String

要解碼的 HTML 字串。

傳回

解碼的文字。

適用於

HtmlDecode(String, TextWriter)

將 HTML 編碼字串解碼,並在資料流中傳回結果。

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

參數

s
String

要解碼的 HTML 字串。

output
TextWriter

包含解碼字串的資料流。

備註

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

適用於