WebPageExecutingBase.WriteTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteTo(TextWriter, Object) |
Writes the specified object as an HTML-encoded string to the specified text writer. |
WriteTo(TextWriter, HelperResult) |
Writes the specified HelperResult object as an HTML-encoded string to the specified text writer. |
WriteTo(TextWriter, Object)
Writes the specified object as an HTML-encoded string to the specified text writer.
public static void WriteTo (System.IO.TextWriter writer, object content);
static member WriteTo : System.IO.TextWriter * obj -> unit
Public Shared Sub WriteTo (writer As TextWriter, content As Object)
Parameters
- writer
- TextWriter
The text writer.
- content
- Object
The object to encode and write.
Applies to
WriteTo(TextWriter, HelperResult)
Writes the specified HelperResult object as an HTML-encoded string to the specified text writer.
public static void WriteTo (System.IO.TextWriter writer, System.Web.WebPages.HelperResult content);
static member WriteTo : System.IO.TextWriter * System.Web.WebPages.HelperResult -> unit
Public Shared Sub WriteTo (writer As TextWriter, content As HelperResult)
Parameters
- writer
- TextWriter
The text writer.
- content
- HelperResult
The helper result to encode and write.