This topic has not yet been rated - Rate this topic

ViewUserControl.SetTextWriter Method

.NET Framework 4

Note: This API is now obsolete.

Sets the text writer that is used to render the view to the response.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
[ObsoleteAttribute("The TextWriter is now provided by the ViewContext object passed to the RenderView method.", 
	true)]
public void SetTextWriter(
	TextWriter textWriter
)

Parameters

textWriter
Type: System.IO.TextWriter
The writer that is used to render the view to the response.

To retrieve the text writer object, use the Writer property.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ