HttpServerUtilityBase.UrlDecode Method

Definition

When overridden in a derived class, decodes a string that was encoded to include only characters that are valid in a URL.

Overloads

UrlDecode(String)

When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

UrlDecode(String, TextWriter)

When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

UrlDecode(String)

When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

public virtual string UrlDecode (string s);

Parameters

s
String

The string to decode.

Returns

The decoded text.

Exceptions

Applies to

.NET Framework 4.8.1 e altre versioni
Prodotto Versioni
.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)

When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

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

Parameters

s
String

The string to decode.

output
TextWriter

The stream to contain the decoded string.

Exceptions

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 e altre versioni
Prodotto Versioni
.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