HttpServerUtilityBase.HtmlEncode Method (String, TextWriter)
.NET Framework (current version)
When overridden in a derived class, HTML-encodes a string and sends the resulting output to an output stream.
Assembly: System.Web (in System.Web.dll)
abstract HtmlEncode : s:string * output:TextWriter -> unit override HtmlEncode : 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 HtmlEncode 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 HtmlEncode.
.NET Framework
Available since 3.5
Available since 3.5
Show: