HttpServerUtilityBase.UrlDecode 方法

定義

在衍生類別中覆寫時,解碼已編碼的字串,以便僅在 URL 中加入有效的字元。

多載

UrlDecode(String)

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

UrlDecode(String, TextWriter)

在衍生類別中覆寫時,將 URL 編碼字串解碼,並將產生的輸出傳送至資料流。

UrlDecode(String)

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

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

參數

s
String

要解碼的字串。

傳回

String

解碼的文字。

例外狀況

適用於

UrlDecode(String, TextWriter)

在衍生類別中覆寫時,將 URL 編碼字串解碼,並將產生的輸出傳送至資料流。

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

參數

s
String

要解碼的字串。

output
TextWriter

包含解碼字串的資料流。

例外狀況

備註

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

適用於