HttpServerUtilityBase.UrlDecode 方法

定義

在衍生類別中覆寫時,解碼已編碼的字串,以便僅在 URL 中加入有效的字元。When overridden in a derived class, decodes a string that was encoded to include only characters that are valid in a URL.

多載

UrlDecode(String)

在衍生類別中覆寫時,將經過 URL 編碼的字串進行解碼,並傳回解碼的字串。When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

UrlDecode(String, TextWriter)

在衍生類別中覆寫時,將 URL 編碼字串解碼,並將產生的輸出傳送至資料流。When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

UrlDecode(String)

在衍生類別中覆寫時,將經過 URL 編碼的字串進行解碼,並傳回解碼的字串。When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

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

要解碼的字串。The string to decode.

傳回

String

解碼的文字。The decoded text.

例外狀況

永遠。Always.

適用於

UrlDecode(String, TextWriter)

在衍生類別中覆寫時,將 URL 編碼字串解碼,並將產生的輸出傳送至資料流。When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

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

要解碼的字串。The string to decode.

output
TextWriter

包含解碼字串的資料流。The stream to contain the decoded string.

例外狀況

永遠。Always.

備註

output參數會以傳址方式傳遞給 UrlDecode 方法。The output parameter is passed by reference to the UrlDecode method. 若要在方法完成之後取出處理常式的輸出,您可以使用物件的屬性和方法 outputTo retrieve the output from the handler after the method completes, you use the properties and methods of the output object. 如需範例,請參閱 HtmlDecodeFor an example, see HtmlDecode.

適用於