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 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

Parameters

s
String

The string to decode.

Returns

The decoded text.

Exceptions

Applies to

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(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)

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