HttpServerUtilityBase.UrlDecode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,对编码为仅包含 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
要解码的字符串。
返回
解码的文本。
例外
适用于
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。