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 string UrlDecode(string s);

Parameters

s
String

The string to decode.

Returns

The decoded text.

Applies to

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

UrlDecode(String, TextWriter)

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

public override void UrlDecode(string s, System.IO.TextWriter output);

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

.NET Framework 4.8.1 i inne wersje
Produkt Wersje
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1