Επεξεργασία

Κοινή χρήση μέσω


HttpServerUtilityWrapper.UrlDecode Method

Definition

Decodes a string that was encoded to include only characters that are valid in a URL.

Overloads

UrlDecode(String)

Decodes a URL-encoded string and returns the decoded string.

UrlDecode(String, TextWriter)

Decodes a URL-encoded string and sends the resulting output to a stream.

UrlDecode(String)

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

Parameters

s
String

The string to decode.

Returns

The decoded text.

Applies to

UrlDecode(String, TextWriter)

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)

Parameters

s
String

The HTML string to decode.

output
TextWriter

The stream to contain the decoded string.

Remarks

The output parameter is passed by reference to the UrlDecode method. To retrieve the output from the handler after the method completes, you use the properties and methods of the output object. For an example, see HtmlDecode.

Applies to