BaseView.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 |
| WriteTo(TextWriter, String) |
Writes the specified |
WriteTo(TextWriter, Object)
Writes the specified value to writer.
protected:
void WriteTo(System::IO::TextWriter ^ writer, System::Object ^ value);
protected void WriteTo (System.IO.TextWriter writer, object value);
member this.WriteTo : System.IO.TextWriter * obj -> unit
Protected Sub WriteTo (writer As TextWriter, value As Object)
Parameters
- writer
- TextWriter
The TextWriter instance to write to.
Remarks
WriteTo(TextWriter) is invoked for HelperResult types. For all other types, the encoded result of ToString() is written to the writer.
Applies to
WriteTo(TextWriter, String)
Writes the specified value with HTML encoding to writer.
protected:
void WriteTo(System::IO::TextWriter ^ writer, System::String ^ value);
protected void WriteTo (System.IO.TextWriter writer, string value);
member this.WriteTo : System.IO.TextWriter * string -> unit
Protected Sub WriteTo (writer As TextWriter, value As String)
Parameters
- writer
- TextWriter
The TextWriter instance to write to.