HttpServerUtilityWrapper.UrlDecode 方法
定义
对编码为仅包含在 URL 中有效的字符的字符串进行解码。Decodes a string that was encoded to include only characters that are valid in a URL.
重载
| UrlDecode(String) |
对 URL 编码的字符串进行解码,并返回已解码的字符串。Decodes a URL-encoded string and returns the decoded string. |
| UrlDecode(String, TextWriter) |
对 URL 编码的字符串进行解码并将结果输出发送到流。Decodes a URL-encoded string and sends the resulting output to a stream. |
UrlDecode(String)
对 URL 编码的字符串进行解码,并返回已解码的字符串。Decodes a URL-encoded string and returns the decoded string.
public:
override System::String ^ UrlDecode(System::String ^ s);
public override string UrlDecode (string s);
override this.UrlDecode : string -> string
Public Overrides Function UrlDecode (s As String) As String
参数
- s
- String
要解码的字符串。The string to decode.
返回
已解码的文本。The decoded text.
适用于
UrlDecode(String, TextWriter)
对 URL 编码的字符串进行解码并将结果输出发送到流。Decodes a URL-encoded string and sends the resulting output to a stream.
public:
override void UrlDecode(System::String ^ s, System::IO::TextWriter ^ output);
public override void UrlDecode (string s, System.IO.TextWriter output);
override this.UrlDecode : string * System.IO.TextWriter -> unit
Public Overrides Sub UrlDecode (s As String, output As TextWriter)
参数
- s
- String
要解码的 HTML 字符串。The HTML string to decode.
- output
- TextWriter
包含已解码字符串的流。The stream to contain the decoded string.
注解
output参数通过引用传递给 UrlDecode 方法。The output parameter is passed by reference to the UrlDecode method. 若要在方法完成后检索处理程序的输出,请使用对象的属性和方法 output 。To retrieve the output from the handler after the method completes, you use the properties and methods of the output object. 有关示例,请参见 HtmlDecode。For an example, see HtmlDecode.