Class that handles Response output generation inside of RazorTemplateBase implementation.
Westwind.RazorHosting.RazorResponse
public class RazorResponse : object, IDisposable
Class Members
Member | Description | |
---|---|---|
Constructor |
||
Writer |
Internal text writer - default to StringWriter() |
|
Clear |
Clears the Response stream public virtual void Clear() |
|
Dispose |
IDisposable implementation public virtual void Dispose() |
|
SetTextWriter |
Allows overriding the TextWriter used write output to. Note: This method MUST be called before any output has been written to the Response to capture the entire response. public virtual void SetTextWriter(TextWriter writer) |
|
ToString |
Returns the Response content as a string public virtual string ToString() |
|
Write |
Write single line output into the response stream public virtual void Write(object value) |
|
WriteFormat |
Writes a format string into the Response Stream public virtual void WriteFormat(string format, Object[] args) |
|
WriteLine |
Writes a line with a CR/LF at the end public virtual void WriteLine(object value) |
Requirements
Namespace: Westwind.RazorHostingAssembly: westwind.razorhosting.dll
© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic