BaseView.WriteTo Method

Definition

Overloads

WriteTo(TextWriter, Object)

Writes the specified value to writer.

WriteTo(TextWriter, String)

Writes the specified value with HTML encoding to writer.

WriteTo(TextWriter, Object)

Source:
BaseView.cs
Source:
BaseView.cs

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.

value
Object

The Object to write.

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)

Source:
BaseView.cs
Source:
BaseView.cs

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.

value
String

The String to write.

Applies to