Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ViewPage::SetTextWriter Method (TextWriter^)

 
Note: This API is now obsolete.

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)

public:
[ObsoleteAttribute("The TextWriter is now provided by the ViewContext object passed to the RenderView method.", 
	true)]
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, use the Writer property.

Return to top
Show:
© 2015 Microsoft