HttpServerUtilityBase.UrlEncode Method (String, TextWriter)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

abstract UrlEncode : 
        s:string *
        output:TextWriter -> unit
override UrlEncode : 
        s:string *
        output:TextWriter -> unit

Parameters

s
Type: System.String

The string to encode.

output
Type: System.IO.TextWriter

The stream to contain the encoded string.

Exception Condition
NotImplementedException

Always.

The output parameter is passed by reference to the UrlEncode 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 UrlEncode.

.NET Framework
Available since 3.5
Return to top
Show: